public final class Message
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 |
|---|
Message() |
| Modifier and Type | Method and Description |
|---|---|
Message |
clone() |
String |
getBody()
The message body.
|
TimeInterval |
getDisplayInterval()
The period of time that the message will be displayed to users.
|
String |
getHeader()
The message header.
|
String |
getId()
The ID associated with a message.
|
String |
getKind()
Identifies what kind of resource this is.
|
LocalizedString |
getLocalizedBody()
Translated strings for the message body.
|
LocalizedString |
getLocalizedHeader()
Translated strings for the message header.
|
String |
getMessageType()
The message type.
|
Message |
set(String fieldName,
Object value) |
Message |
setBody(String body)
The message body.
|
Message |
setDisplayInterval(TimeInterval displayInterval)
The period of time that the message will be displayed to users.
|
Message |
setHeader(String header)
The message header.
|
Message |
setId(String id)
The ID associated with a message.
|
Message |
setKind(String kind)
Identifies what kind of resource this is.
|
Message |
setLocalizedBody(LocalizedString localizedBody)
Translated strings for the message body.
|
Message |
setLocalizedHeader(LocalizedString localizedHeader)
Translated strings for the message header.
|
Message |
setMessageType(String messageType)
The message type.
|
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 String getBody()
null for nonepublic Message setBody(String body)
body - body or null for nonepublic TimeInterval getDisplayInterval()
null for nonepublic Message setDisplayInterval(TimeInterval displayInterval)
displayInterval - displayInterval or null for nonepublic String getHeader()
null for nonepublic Message setHeader(String header)
header - header or null for nonepublic String getId()
null for nonepublic Message setId(String id)
id - id or null for nonepublic String getKind()
null for nonepublic Message setKind(String kind)
kind - kind or null for nonepublic LocalizedString getLocalizedBody()
null for nonepublic Message setLocalizedBody(LocalizedString localizedBody)
localizedBody - localizedBody or null for nonepublic LocalizedString getLocalizedHeader()
null for nonepublic Message setLocalizedHeader(LocalizedString localizedHeader)
localizedHeader - localizedHeader or null for nonepublic String getMessageType()
null for nonepublic Message setMessageType(String messageType)
messageType - messageType or null for nonepublic Message set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Message clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.