
target.apidocs.com.google.api.services.walletobjects.model.TextModuleData.html Maven / Gradle / Ivy
TextModuleData (Google Wallet API v1-rev20241017-2.0.0)
com.google.api.services.walletobjects.model
Class TextModuleData
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.walletobjects.model.TextModuleData
-
public final class TextModuleData
extends com.google.api.client.json.GenericJson
Data for Text module. All fields are optional. Header will be displayed if available, different
types of bodies will be concatenated if they are defined.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
TextModuleData()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
TextModuleData
clone()
String
getBody()
The body of the Text Module, which is defined as an uninterrupted string.
String
getHeader()
The header of the Text Module.
String
getId()
The ID associated with a text module.
LocalizedString
getLocalizedBody()
Translated strings for the body.
LocalizedString
getLocalizedHeader()
Translated strings for the header.
TextModuleData
set(String fieldName,
Object value)
TextModuleData
setBody(String body)
The body of the Text Module, which is defined as an uninterrupted string.
TextModuleData
setHeader(String header)
The header of the Text Module.
TextModuleData
setId(String id)
The ID associated with a text module.
TextModuleData
setLocalizedBody(LocalizedString localizedBody)
Translated strings for the body.
TextModuleData
setLocalizedHeader(LocalizedString localizedHeader)
Translated strings for the header.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getBody
public String getBody()
The body of the Text Module, which is defined as an uninterrupted string. Recommended maximum
length is 500 characters to ensure full string is displayed on smaller screens.
- Returns:
- value or
null
for none
-
setBody
public TextModuleData setBody(String body)
The body of the Text Module, which is defined as an uninterrupted string. Recommended maximum
length is 500 characters to ensure full string is displayed on smaller screens.
- Parameters:
body
- body or null
for none
-
getHeader
public String getHeader()
The header of the Text Module. Recommended maximum length is 35 characters to ensure full
string is displayed on smaller screens.
- Returns:
- value or
null
for none
-
setHeader
public TextModuleData setHeader(String header)
The header of the Text Module. Recommended maximum length is 35 characters to ensure full
string is displayed on smaller screens.
- Parameters:
header
- header or null
for none
-
getId
public String getId()
The ID associated with a text module. This field is here to enable ease of management of text
modules and referencing them in template overrides. The ID should only include alphanumeric
characters, '_', or '-'. It can not include dots, as dots are used to separate fields within
FieldReference.fieldPaths in template overrides.
- Returns:
- value or
null
for none
-
setId
public TextModuleData setId(String id)
The ID associated with a text module. This field is here to enable ease of management of text
modules and referencing them in template overrides. The ID should only include alphanumeric
characters, '_', or '-'. It can not include dots, as dots are used to separate fields within
FieldReference.fieldPaths in template overrides.
- Parameters:
id
- id or null
for none
-
getLocalizedBody
public LocalizedString getLocalizedBody()
Translated strings for the body. Recommended maximum length is 500 characters to ensure full
string is displayed on smaller screens.
- Returns:
- value or
null
for none
-
setLocalizedBody
public TextModuleData setLocalizedBody(LocalizedString localizedBody)
Translated strings for the body. Recommended maximum length is 500 characters to ensure full
string is displayed on smaller screens.
- Parameters:
localizedBody
- localizedBody or null
for none
-
getLocalizedHeader
public LocalizedString getLocalizedHeader()
Translated strings for the header. Recommended maximum length is 35 characters to ensure full
string is displayed on smaller screens.
- Returns:
- value or
null
for none
-
setLocalizedHeader
public TextModuleData setLocalizedHeader(LocalizedString localizedHeader)
Translated strings for the header. Recommended maximum length is 35 characters to ensure full
string is displayed on smaller screens.
- Parameters:
localizedHeader
- localizedHeader or null
for none
-
set
public TextModuleData set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public TextModuleData clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy