public static final class LocalizedText.Builder extends GeneratedMessageV3.Builder<LocalizedText.Builder> implements LocalizedTextOrBuilder
Localized variant of a text in a particular language.
Protobuf type google.type.LocalizedText
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > LocalizedText.BuilderImplements
LocalizedTextOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LocalizedText.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
LocalizedText.Builder |
build()
public LocalizedText build()
Type | Description |
LocalizedText |
buildPartial()
public LocalizedText buildPartial()
Type | Description |
LocalizedText |
clear()
public LocalizedText.Builder clear()
Type | Description |
LocalizedText.Builder |
clearField(Descriptors.FieldDescriptor field)
public LocalizedText.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
LocalizedText.Builder |
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;
Type | Description |
LocalizedText.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public LocalizedText.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
LocalizedText.Builder |
clearText()
public LocalizedText.Builder clearText()
Localized string in the language corresponding to `language_code' below.
string text = 1;
Type | Description |
LocalizedText.Builder | This builder for chaining. |
clone()
public LocalizedText.Builder clone()
Type | Description |
LocalizedText.Builder |
getDefaultInstanceForType()
public LocalizedText getDefaultInstanceForType()
Type | Description |
LocalizedText |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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;
Type | Description |
String | The languageCode. |
getLanguageCodeBytes()
public 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;
Type | Description |
ByteString | The bytes for languageCode. |
getText()
public String getText()
Localized string in the language corresponding to `language_code' below.
string text = 1;
Type | Description |
String | The text. |
getTextBytes()
public ByteString getTextBytes()
Localized string in the language corresponding to `language_code' below.
string text = 1;
Type | Description |
ByteString | The bytes for text. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public LocalizedText.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
LocalizedText.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public LocalizedText.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
LocalizedText.Builder |
mergeFrom(LocalizedText other)
public LocalizedText.Builder mergeFrom(LocalizedText other)
Name | Description |
other | LocalizedText |
Type | Description |
LocalizedText.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LocalizedText.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
LocalizedText.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public LocalizedText.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
LocalizedText.Builder |
setLanguageCode(String value)
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;
Name | Description |
value | String The languageCode to set. |
Type | Description |
LocalizedText.Builder | This builder for chaining. |
setLanguageCodeBytes(ByteString value)
public LocalizedText.Builder setLanguageCodeBytes(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;
Name | Description |
value | ByteString The bytes for languageCode to set. |
Type | Description |
LocalizedText.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LocalizedText.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
LocalizedText.Builder |
setText(String value)
public LocalizedText.Builder setText(String value)
Localized string in the language corresponding to `language_code' below.
string text = 1;
Name | Description |
value | String The text to set. |
Type | Description |
LocalizedText.Builder | This builder for chaining. |
setTextBytes(ByteString value)
public LocalizedText.Builder setTextBytes(ByteString value)
Localized string in the language corresponding to `language_code' below.
string text = 1;
Name | Description |
value | ByteString The bytes for text to set. |
Type | Description |
LocalizedText.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final LocalizedText.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
LocalizedText.Builder |