public final class FlightObject
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Wallet API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
FlightObject() |
| Modifier and Type | Method and Description |
|---|---|
FlightObject |
clone() |
AppLinkData |
getAppLinkData()
Optional app or website link that will be displayed as a button on the front of the pass.
|
Barcode |
getBarcode()
The barcode type and value.
|
BoardingAndSeatingInfo |
getBoardingAndSeatingInfo()
Passenger specific information about boarding and seating.
|
String |
getClassId()
Required.
|
FlightClass |
getClassReference()
A copy of the inherited fields of the parent class.
|
Boolean |
getDisableExpirationNotification()
Indicates if notifications should explicitly be suppressed.
|
GroupingInfo |
getGroupingInfo()
Information that controls how passes are grouped together.
|
Boolean |
getHasLinkedDevice()
Whether this object is currently linked to a single device.
|
Boolean |
getHasUsers()
Indicates if the object has users.
|
Image |
getHeroImage()
Optional banner image displayed on the front of the card.
|
String |
getHexBackgroundColor()
The background color for the card.
|
String |
getId()
Required.
|
List<ImageModuleData> |
getImageModulesData()
Image module data.
|
InfoModuleData |
getInfoModuleData()
Deprecated.
|
String |
getKind()
Identifies what kind of resource this is.
|
List<String> |
getLinkedObjectIds()
linked_object_ids are a list of other objects such as event ticket, loyalty, offer, generic,
giftcard, transit and boarding pass that should be automatically attached to this flight
object.
|
LinksModuleData |
getLinksModuleData()
Links module data.
|
List<LatLongPoint> |
getLocations()
Note: This field is currently not supported to trigger geo notifications.
|
List<MerchantLocation> |
getMerchantLocations()
Merchant locations.
|
List<Message> |
getMessages()
An array of messages displayed in the app.
|
String |
getNotifyPreference()
Whether or not field updates to this object should trigger notifications.
|
PassConstraints |
getPassConstraints()
Pass constraints for the object.
|
String |
getPassengerName()
Required.
|
ReservationInfo |
getReservationInfo()
Required.
|
RotatingBarcode |
getRotatingBarcode()
The rotating barcode type and value.
|
SaveRestrictions |
getSaveRestrictions()
Restrictions on the object that needs to be verified before the user tries to save the pass.
|
Image |
getSecurityProgramLogo()
An image for the security program that applies to the passenger.
|
String |
getSmartTapRedemptionValue()
The value that will be transmitted to a Smart Tap certified terminal over NFC for this object.
|
String |
getState()
Required.
|
List<TextModuleData> |
getTextModulesData()
Text module data.
|
TimeInterval |
getValidTimeInterval()
The time period this object will be `active` and object can be used.
|
List<ValueAddedModuleData> |
getValueAddedModuleData()
Optional value added module data.
|
Long |
getVersion()
Deprecated
|
FlightObject |
set(String fieldName,
Object value) |
FlightObject |
setAppLinkData(AppLinkData appLinkData)
Optional app or website link that will be displayed as a button on the front of the pass.
|
FlightObject |
setBarcode(Barcode barcode)
The barcode type and value.
|
FlightObject |
setBoardingAndSeatingInfo(BoardingAndSeatingInfo boardingAndSeatingInfo)
Passenger specific information about boarding and seating.
|
FlightObject |
setClassId(String classId)
Required.
|
FlightObject |
setClassReference(FlightClass classReference)
A copy of the inherited fields of the parent class.
|
FlightObject |
setDisableExpirationNotification(Boolean disableExpirationNotification)
Indicates if notifications should explicitly be suppressed.
|
FlightObject |
setGroupingInfo(GroupingInfo groupingInfo)
Information that controls how passes are grouped together.
|
FlightObject |
setHasLinkedDevice(Boolean hasLinkedDevice)
Whether this object is currently linked to a single device.
|
FlightObject |
setHasUsers(Boolean hasUsers)
Indicates if the object has users.
|
FlightObject |
setHeroImage(Image heroImage)
Optional banner image displayed on the front of the card.
|
FlightObject |
setHexBackgroundColor(String hexBackgroundColor)
The background color for the card.
|
FlightObject |
setId(String id)
Required.
|
FlightObject |
setImageModulesData(List<ImageModuleData> imageModulesData)
Image module data.
|
FlightObject |
setInfoModuleData(InfoModuleData infoModuleData)
Deprecated.
|
FlightObject |
setKind(String kind)
Identifies what kind of resource this is.
|
FlightObject |
setLinkedObjectIds(List<String> linkedObjectIds)
linked_object_ids are a list of other objects such as event ticket, loyalty, offer, generic,
giftcard, transit and boarding pass that should be automatically attached to this flight
object.
|
FlightObject |
setLinksModuleData(LinksModuleData linksModuleData)
Links module data.
|
FlightObject |
setLocations(List<LatLongPoint> locations)
Note: This field is currently not supported to trigger geo notifications.
|
FlightObject |
setMerchantLocations(List<MerchantLocation> merchantLocations)
Merchant locations.
|
FlightObject |
setMessages(List<Message> messages)
An array of messages displayed in the app.
|
FlightObject |
setNotifyPreference(String notifyPreference)
Whether or not field updates to this object should trigger notifications.
|
FlightObject |
setPassConstraints(PassConstraints passConstraints)
Pass constraints for the object.
|
FlightObject |
setPassengerName(String passengerName)
Required.
|
FlightObject |
setReservationInfo(ReservationInfo reservationInfo)
Required.
|
FlightObject |
setRotatingBarcode(RotatingBarcode rotatingBarcode)
The rotating barcode type and value.
|
FlightObject |
setSaveRestrictions(SaveRestrictions saveRestrictions)
Restrictions on the object that needs to be verified before the user tries to save the pass.
|
FlightObject |
setSecurityProgramLogo(Image securityProgramLogo)
An image for the security program that applies to the passenger.
|
FlightObject |
setSmartTapRedemptionValue(String smartTapRedemptionValue)
The value that will be transmitted to a Smart Tap certified terminal over NFC for this object.
|
FlightObject |
setState(String state)
Required.
|
FlightObject |
setTextModulesData(List<TextModuleData> textModulesData)
Text module data.
|
FlightObject |
setValidTimeInterval(TimeInterval validTimeInterval)
The time period this object will be `active` and object can be used.
|
FlightObject |
setValueAddedModuleData(List<ValueAddedModuleData> valueAddedModuleData)
Optional value added module data.
|
FlightObject |
setVersion(Long version)
Deprecated
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic AppLinkData getAppLinkData()
null for nonepublic FlightObject setAppLinkData(AppLinkData appLinkData)
appLinkData - appLinkData or null for nonepublic Barcode getBarcode()
null for nonepublic FlightObject setBarcode(Barcode barcode)
barcode - barcode or null for nonepublic BoardingAndSeatingInfo getBoardingAndSeatingInfo()
null for nonepublic FlightObject setBoardingAndSeatingInfo(BoardingAndSeatingInfo boardingAndSeatingInfo)
boardingAndSeatingInfo - boardingAndSeatingInfo or null for nonepublic String getClassId()
null for nonepublic FlightObject setClassId(String classId)
classId - classId or null for nonepublic FlightClass getClassReference()
null for nonepublic FlightObject setClassReference(FlightClass classReference)
classReference - classReference or null for nonepublic Boolean getDisableExpirationNotification()
null for nonepublic FlightObject setDisableExpirationNotification(Boolean disableExpirationNotification)
disableExpirationNotification - disableExpirationNotification or null for nonepublic GroupingInfo getGroupingInfo()
null for nonepublic FlightObject setGroupingInfo(GroupingInfo groupingInfo)
groupingInfo - groupingInfo or null for nonepublic Boolean getHasLinkedDevice()
null for nonepublic FlightObject setHasLinkedDevice(Boolean hasLinkedDevice)
hasLinkedDevice - hasLinkedDevice or null for nonepublic Boolean getHasUsers()
null for nonepublic FlightObject setHasUsers(Boolean hasUsers)
hasUsers - hasUsers or null for nonepublic Image getHeroImage()
null for nonepublic FlightObject setHeroImage(Image heroImage)
heroImage - heroImage or null for nonepublic String getHexBackgroundColor()
null for nonepublic FlightObject setHexBackgroundColor(String hexBackgroundColor)
hexBackgroundColor - hexBackgroundColor or null for nonepublic String getId()
null for nonepublic FlightObject setId(String id)
id - id or null for nonepublic List<ImageModuleData> getImageModulesData()
null for nonepublic FlightObject setImageModulesData(List<ImageModuleData> imageModulesData)
imageModulesData - imageModulesData or null for nonepublic InfoModuleData getInfoModuleData()
null for nonepublic FlightObject setInfoModuleData(InfoModuleData infoModuleData)
infoModuleData - infoModuleData or null for nonepublic String getKind()
null for nonepublic FlightObject setKind(String kind)
kind - kind or null for nonepublic List<String> getLinkedObjectIds()
null for nonepublic FlightObject setLinkedObjectIds(List<String> linkedObjectIds)
linkedObjectIds - linkedObjectIds or null for nonepublic LinksModuleData getLinksModuleData()
null for nonepublic FlightObject setLinksModuleData(LinksModuleData linksModuleData)
linksModuleData - linksModuleData or null for nonepublic List<LatLongPoint> getLocations()
null for nonepublic FlightObject setLocations(List<LatLongPoint> locations)
locations - locations or null for nonepublic List<MerchantLocation> getMerchantLocations()
null for nonepublic FlightObject setMerchantLocations(List<MerchantLocation> merchantLocations)
merchantLocations - merchantLocations or null for nonepublic List<Message> getMessages()
null for nonepublic FlightObject setMessages(List<Message> messages)
messages - messages or null for nonepublic String getNotifyPreference()
null for nonepublic FlightObject setNotifyPreference(String notifyPreference)
notifyPreference - notifyPreference or null for nonepublic PassConstraints getPassConstraints()
null for nonepublic FlightObject setPassConstraints(PassConstraints passConstraints)
passConstraints - passConstraints or null for nonepublic String getPassengerName()
null for nonepublic FlightObject setPassengerName(String passengerName)
passengerName - passengerName or null for nonepublic ReservationInfo getReservationInfo()
null for nonepublic FlightObject setReservationInfo(ReservationInfo reservationInfo)
reservationInfo - reservationInfo or null for nonepublic RotatingBarcode getRotatingBarcode()
null for nonepublic FlightObject setRotatingBarcode(RotatingBarcode rotatingBarcode)
rotatingBarcode - rotatingBarcode or null for nonepublic SaveRestrictions getSaveRestrictions()
null for nonepublic FlightObject setSaveRestrictions(SaveRestrictions saveRestrictions)
saveRestrictions - saveRestrictions or null for nonepublic Image getSecurityProgramLogo()
null for nonepublic FlightObject setSecurityProgramLogo(Image securityProgramLogo)
securityProgramLogo - securityProgramLogo or null for nonepublic String getSmartTapRedemptionValue()
null for nonepublic FlightObject setSmartTapRedemptionValue(String smartTapRedemptionValue)
smartTapRedemptionValue - smartTapRedemptionValue or null for nonepublic String getState()
null for nonepublic FlightObject setState(String state)
state - state or null for nonepublic List<TextModuleData> getTextModulesData()
null for nonepublic FlightObject setTextModulesData(List<TextModuleData> textModulesData)
textModulesData - textModulesData or null for nonepublic TimeInterval getValidTimeInterval()
null for nonepublic FlightObject setValidTimeInterval(TimeInterval validTimeInterval)
validTimeInterval - validTimeInterval or null for nonepublic List<ValueAddedModuleData> getValueAddedModuleData()
null for nonepublic FlightObject setValueAddedModuleData(List<ValueAddedModuleData> valueAddedModuleData)
valueAddedModuleData - valueAddedModuleData or null for nonepublic Long getVersion()
null for nonepublic FlightObject setVersion(Long version)
version - version or null for nonepublic FlightObject set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic FlightObject clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.