All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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

  • All Implemented Interfaces:
    Cloneable, Map<String,Object>


    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.
    • Constructor Detail

      • TextModuleData

        public TextModuleData()
    • 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