Package com.google.type
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 TypeMethodDescriptionThe 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".getText()
Localized string in the language corresponding to `language_code' below.com.google.protobuf.ByteString
Localized string in the language corresponding to `language_code' below.setLanguageCode
(String value) 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".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
Localized string in the language corresponding to `language_code' below.
string text = 1 [json_name = "text"];
- Specified by:
getText
in interfaceLocalizedTextOrBuilder
- 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 interfaceLocalizedTextOrBuilder
- Returns:
- The bytes for text.
-
setText
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
Localized string in the language corresponding to `language_code' below.
string text = 1 [json_name = "text"];
- Returns:
- This builder for chaining.
-
setTextBytes
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
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 interfaceLocalizedTextOrBuilder
- 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 interfaceLocalizedTextOrBuilder
- Returns:
- The bytes for languageCode.
-
setLanguageCode
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
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
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.
-