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.Flags
AbstractMap.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 type of the message.
|
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 type of the message.
|
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 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.GenericJson
public Message clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.