public final class GenericObject
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 |
|---|
GenericObject() |
| Modifier and Type | Method and Description |
|---|---|
GenericObject |
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.
|
LocalizedString |
getCardTitle()
Required.
|
String |
getClassId()
Required.
|
String |
getGenericType()
Specify which `GenericType` the card belongs to.
|
GroupingInfo |
getGroupingInfo()
Information that controls how passes are grouped together.
|
Boolean |
getHasUsers()
Indicates if the object has users.
|
LocalizedString |
getHeader()
Required.
|
Image |
getHeroImage()
Banner image displayed on the front of the card if present.
|
String |
getHexBackgroundColor()
The background color for the card.
|
String |
getId()
Required.
|
List<ImageModuleData> |
getImageModulesData()
Image module data.
|
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 generic
object.
|
LinksModuleData |
getLinksModuleData()
Links module data.
|
Image |
getLogo()
The logo image of the pass.
|
List<MerchantLocation> |
getMerchantLocations()
Merchant locations.
|
List<Message> |
getMessages()
An array of messages displayed in the app.
|
Notifications |
getNotifications()
The notification settings that are enabled for this object.
|
PassConstraints |
getPassConstraints()
Pass constraints for the object.
|
RotatingBarcode |
getRotatingBarcode()
The rotating barcode settings/details.
|
SaveRestrictions |
getSaveRestrictions()
Restrictions on the object that needs to be verified before the user tries to save the pass.
|
String |
getSmartTapRedemptionValue()
The value that will be transmitted to a Smart Tap certified terminal over NFC for this object.
|
String |
getState()
The state of the object.
|
LocalizedString |
getSubheader()
The title label of the pass, such as location where this pass can be used.
|
List<TextModuleData> |
getTextModulesData()
Text module data.
|
TimeInterval |
getValidTimeInterval()
The time period this object will be considered valid or usable.
|
List<ValueAddedModuleData> |
getValueAddedModuleData()
Optional value added module data.
|
Image |
getWideLogo()
The wide logo of the pass.
|
GenericObject |
set(String fieldName,
Object value) |
GenericObject |
setAppLinkData(AppLinkData appLinkData)
Optional app or website link that will be displayed as a button on the front of the pass.
|
GenericObject |
setBarcode(Barcode barcode)
The barcode type and value.
|
GenericObject |
setCardTitle(LocalizedString cardTitle)
Required.
|
GenericObject |
setClassId(String classId)
Required.
|
GenericObject |
setGenericType(String genericType)
Specify which `GenericType` the card belongs to.
|
GenericObject |
setGroupingInfo(GroupingInfo groupingInfo)
Information that controls how passes are grouped together.
|
GenericObject |
setHasUsers(Boolean hasUsers)
Indicates if the object has users.
|
GenericObject |
setHeader(LocalizedString header)
Required.
|
GenericObject |
setHeroImage(Image heroImage)
Banner image displayed on the front of the card if present.
|
GenericObject |
setHexBackgroundColor(String hexBackgroundColor)
The background color for the card.
|
GenericObject |
setId(String id)
Required.
|
GenericObject |
setImageModulesData(List<ImageModuleData> imageModulesData)
Image module data.
|
GenericObject |
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 generic
object.
|
GenericObject |
setLinksModuleData(LinksModuleData linksModuleData)
Links module data.
|
GenericObject |
setLogo(Image logo)
The logo image of the pass.
|
GenericObject |
setMerchantLocations(List<MerchantLocation> merchantLocations)
Merchant locations.
|
GenericObject |
setMessages(List<Message> messages)
An array of messages displayed in the app.
|
GenericObject |
setNotifications(Notifications notifications)
The notification settings that are enabled for this object.
|
GenericObject |
setPassConstraints(PassConstraints passConstraints)
Pass constraints for the object.
|
GenericObject |
setRotatingBarcode(RotatingBarcode rotatingBarcode)
The rotating barcode settings/details.
|
GenericObject |
setSaveRestrictions(SaveRestrictions saveRestrictions)
Restrictions on the object that needs to be verified before the user tries to save the pass.
|
GenericObject |
setSmartTapRedemptionValue(String smartTapRedemptionValue)
The value that will be transmitted to a Smart Tap certified terminal over NFC for this object.
|
GenericObject |
setState(String state)
The state of the object.
|
GenericObject |
setSubheader(LocalizedString subheader)
The title label of the pass, such as location where this pass can be used.
|
GenericObject |
setTextModulesData(List<TextModuleData> textModulesData)
Text module data.
|
GenericObject |
setValidTimeInterval(TimeInterval validTimeInterval)
The time period this object will be considered valid or usable.
|
GenericObject |
setValueAddedModuleData(List<ValueAddedModuleData> valueAddedModuleData)
Optional value added module data.
|
GenericObject |
setWideLogo(Image wideLogo)
The wide logo of the pass.
|
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 GenericObject setAppLinkData(AppLinkData appLinkData)
appLinkData - appLinkData or null for nonepublic Barcode getBarcode()
null for nonepublic GenericObject setBarcode(Barcode barcode)
barcode - barcode or null for nonepublic LocalizedString getCardTitle()
null for nonepublic GenericObject setCardTitle(LocalizedString cardTitle)
cardTitle - cardTitle or null for nonepublic String getClassId()
null for nonepublic GenericObject setClassId(String classId)
classId - classId or null for nonepublic String getGenericType()
null for nonepublic GenericObject setGenericType(String genericType)
genericType - genericType or null for nonepublic GroupingInfo getGroupingInfo()
null for nonepublic GenericObject setGroupingInfo(GroupingInfo groupingInfo)
groupingInfo - groupingInfo or null for nonepublic Boolean getHasUsers()
null for nonepublic GenericObject setHasUsers(Boolean hasUsers)
hasUsers - hasUsers or null for nonepublic LocalizedString getHeader()
null for nonepublic GenericObject setHeader(LocalizedString header)
header - header or null for nonepublic Image getHeroImage()
null for nonepublic GenericObject setHeroImage(Image heroImage)
heroImage - heroImage or null for nonepublic String getHexBackgroundColor()
null for nonepublic GenericObject setHexBackgroundColor(String hexBackgroundColor)
hexBackgroundColor - hexBackgroundColor or null for nonepublic String getId()
null for nonepublic GenericObject setId(String id)
id - id or null for nonepublic List<ImageModuleData> getImageModulesData()
null for nonepublic GenericObject setImageModulesData(List<ImageModuleData> imageModulesData)
imageModulesData - imageModulesData or null for nonepublic List<String> getLinkedObjectIds()
null for nonepublic GenericObject setLinkedObjectIds(List<String> linkedObjectIds)
linkedObjectIds - linkedObjectIds or null for nonepublic LinksModuleData getLinksModuleData()
null for nonepublic GenericObject setLinksModuleData(LinksModuleData linksModuleData)
linksModuleData - linksModuleData or null for nonepublic Image getLogo()
null for nonepublic GenericObject setLogo(Image logo)
logo - logo or null for nonepublic List<MerchantLocation> getMerchantLocations()
null for nonepublic GenericObject setMerchantLocations(List<MerchantLocation> merchantLocations)
merchantLocations - merchantLocations or null for nonepublic List<Message> getMessages()
null for nonepublic GenericObject setMessages(List<Message> messages)
messages - messages or null for nonepublic Notifications getNotifications()
null for nonepublic GenericObject setNotifications(Notifications notifications)
notifications - notifications or null for nonepublic PassConstraints getPassConstraints()
null for nonepublic GenericObject setPassConstraints(PassConstraints passConstraints)
passConstraints - passConstraints or null for nonepublic RotatingBarcode getRotatingBarcode()
null for nonepublic GenericObject setRotatingBarcode(RotatingBarcode rotatingBarcode)
rotatingBarcode - rotatingBarcode or null for nonepublic SaveRestrictions getSaveRestrictions()
null for nonepublic GenericObject setSaveRestrictions(SaveRestrictions saveRestrictions)
saveRestrictions - saveRestrictions or null for nonepublic String getSmartTapRedemptionValue()
null for nonepublic GenericObject setSmartTapRedemptionValue(String smartTapRedemptionValue)
smartTapRedemptionValue - smartTapRedemptionValue or null for nonepublic String getState()
null for nonepublic GenericObject setState(String state)
state - state or null for nonepublic LocalizedString getSubheader()
null for nonepublic GenericObject setSubheader(LocalizedString subheader)
subheader - subheader or null for nonepublic List<TextModuleData> getTextModulesData()
null for nonepublic GenericObject setTextModulesData(List<TextModuleData> textModulesData)
textModulesData - textModulesData or null for nonepublic TimeInterval getValidTimeInterval()
null for nonepublic GenericObject setValidTimeInterval(TimeInterval validTimeInterval)
validTimeInterval - validTimeInterval or null for nonepublic List<ValueAddedModuleData> getValueAddedModuleData()
null for nonepublic GenericObject setValueAddedModuleData(List<ValueAddedModuleData> valueAddedModuleData)
valueAddedModuleData - valueAddedModuleData or null for nonepublic Image getWideLogo()
null for nonepublic GenericObject setWideLogo(Image wideLogo)
wideLogo - wideLogo or null for nonepublic GenericObject set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic GenericObject clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.