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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LocalizedText.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public LocalizedText build()
buildPartial()
public LocalizedText buildPartial()
clear()
public LocalizedText.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public LocalizedText.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearLanguageCode()
public LocalizedText.Builder clearLanguageCode()
clearOneof(Descriptors.OneofDescriptor oneof)
public LocalizedText.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearText()
public LocalizedText.Builder clearText()
Localized string in the language corresponding to `language_code' below.
string text = 1;
clone()
public LocalizedText.Builder clone()
Overrides
getDefaultInstanceForType()
public LocalizedText getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getLanguageCode()
public String getLanguageCode()
Returns |
---|
Type | Description |
String | The languageCode.
|
getLanguageCodeBytes()
public ByteString getLanguageCodeBytes()
Returns |
---|
Type | Description |
ByteString | The bytes for languageCode.
|
getText()
Localized string in the language corresponding to `language_code' below.
string text = 1;
Returns |
---|
Type | Description |
String | The text.
|
getTextBytes()
public ByteString getTextBytes()
Localized string in the language corresponding to `language_code' below.
string text = 1;
Returns |
---|
Type | Description |
ByteString | The bytes for text.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public LocalizedText.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public LocalizedText.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeFrom(LocalizedText other)
public LocalizedText.Builder mergeFrom(LocalizedText other)
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LocalizedText.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public LocalizedText.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setLanguageCode(String value)
public LocalizedText.Builder setLanguageCode(String value)
Parameter |
---|
Name | Description |
value | String
The languageCode to set.
|
setLanguageCodeBytes(ByteString value)
public LocalizedText.Builder setLanguageCodeBytes(ByteString value)
Parameter |
---|
Name | Description |
value | ByteString
The bytes for languageCode to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LocalizedText.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setText(String value)
public LocalizedText.Builder setText(String value)
Localized string in the language corresponding to `language_code' below.
string text = 1;
Parameter |
---|
Name | Description |
value | String
The text to set.
|
setTextBytes(ByteString value)
public LocalizedText.Builder setTextBytes(ByteString value)
Localized string in the language corresponding to `language_code' below.
string text = 1;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for text to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final LocalizedText.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides