Class LocalizedText.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<LocalizedText,LocalizedText.Builder>
com.google.type.LocalizedText.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, LocalizedTextOrBuilder, Cloneable
Enclosing class:
LocalizedText

public static final class LocalizedText.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<LocalizedText,LocalizedText.Builder> implements LocalizedTextOrBuilder
 Localized variant of a text in a particular language.
 
Protobuf type google.type.LocalizedText
  • Field Summary

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    The text's BCP-47 language code, such as "en-US" or "sr-Latn".
    Localized string in the language corresponding to `language_code' below.
    The text's BCP-47 language code, such as "en-US" or "sr-Latn".
    com.google.protobuf.ByteString
    The text's BCP-47 language code, such as "en-US" or "sr-Latn".
    Localized string in the language corresponding to `language_code' below.
    com.google.protobuf.ByteString
    Localized string in the language corresponding to `language_code' below.
    The text's BCP-47 language code, such as "en-US" or "sr-Latn".
    setLanguageCodeBytes(com.google.protobuf.ByteString value)
    The text's BCP-47 language code, such as "en-US" or "sr-Latn".
    setText(String value)
    Localized string in the language corresponding to `language_code' below.
    setTextBytes(com.google.protobuf.ByteString value)
    Localized string in the language corresponding to `language_code' below.

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • getText

      public String getText()
       Localized string in the language corresponding to `language_code' below.
       
      string text = 1 [json_name = "text"];
      Specified by:
      getText in interface LocalizedTextOrBuilder
      Returns:
      The text.
    • getTextBytes

      public com.google.protobuf.ByteString getTextBytes()
       Localized string in the language corresponding to `language_code' below.
       
      string text = 1 [json_name = "text"];
      Specified by:
      getTextBytes in interface LocalizedTextOrBuilder
      Returns:
      The bytes for text.
    • setText

      public LocalizedText.Builder setText(String value)
       Localized string in the language corresponding to `language_code' below.
       
      string text = 1 [json_name = "text"];
      Parameters:
      value - The text to set.
      Returns:
      This builder for chaining.
    • clearText

      public LocalizedText.Builder clearText()
       Localized string in the language corresponding to `language_code' below.
       
      string text = 1 [json_name = "text"];
      Returns:
      This builder for chaining.
    • setTextBytes

      public LocalizedText.Builder setTextBytes(com.google.protobuf.ByteString value)
       Localized string in the language corresponding to `language_code' below.
       
      string text = 1 [json_name = "text"];
      Parameters:
      value - The bytes for text to set.
      Returns:
      This builder for chaining.
    • getLanguageCode

      public String getLanguageCode()
       The text's BCP-47 language code, such as "en-US" or "sr-Latn".
      
       For more information, see
       http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
       
      string language_code = 2 [json_name = "languageCode"];
      Specified by:
      getLanguageCode in interface LocalizedTextOrBuilder
      Returns:
      The languageCode.
    • getLanguageCodeBytes

      public com.google.protobuf.ByteString getLanguageCodeBytes()
       The text's BCP-47 language code, such as "en-US" or "sr-Latn".
      
       For more information, see
       http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
       
      string language_code = 2 [json_name = "languageCode"];
      Specified by:
      getLanguageCodeBytes in interface LocalizedTextOrBuilder
      Returns:
      The bytes for languageCode.
    • setLanguageCode

      public LocalizedText.Builder setLanguageCode(String value)
       The text's BCP-47 language code, such as "en-US" or "sr-Latn".
      
       For more information, see
       http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
       
      string language_code = 2 [json_name = "languageCode"];
      Parameters:
      value - The languageCode to set.
      Returns:
      This builder for chaining.
    • clearLanguageCode

      public LocalizedText.Builder clearLanguageCode()
       The text's BCP-47 language code, such as "en-US" or "sr-Latn".
      
       For more information, see
       http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
       
      string language_code = 2 [json_name = "languageCode"];
      Returns:
      This builder for chaining.
    • setLanguageCodeBytes

      public LocalizedText.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)
       The text's BCP-47 language code, such as "en-US" or "sr-Latn".
      
       For more information, see
       http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
       
      string language_code = 2 [json_name = "languageCode"];
      Parameters:
      value - The bytes for languageCode to set.
      Returns:
      This builder for chaining.