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.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
GenericObject() |
Modifier and Type | Method and Description |
---|---|
GenericObject |
clone() |
AppLinkData |
getAppLinkData()
Information about the partner app link.
|
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.
|
LinksModuleData |
getLinksModuleData()
Links module data.
|
Image |
getLogo()
The logo image of the pass.
|
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.
|
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.
|
Image |
getWideLogo()
The wide logo of the pass.
|
GenericObject |
set(String fieldName,
Object value) |
GenericObject |
setAppLinkData(AppLinkData appLinkData)
Information about the partner app link.
|
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 |
setLinksModuleData(LinksModuleData linksModuleData)
Links module data.
|
GenericObject |
setLogo(Image logo)
The logo image of the pass.
|
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 |
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 |
setWideLogo(Image wideLogo)
The wide logo of the pass.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public 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 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 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 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 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.GenericJson
public GenericObject clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.