public static final class Text.Builder extends GeneratedMessageV3.Builder<Text.Builder> implements TextOrBuilder
A text object containing the English text and its localized copies.
Protobuf type google.cloud.advisorynotifications.v1.Text
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Text.BuilderImplements
TextOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Text.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Text.Builder |
build()
public Text build()
Type | Description |
Text |
buildPartial()
public Text buildPartial()
Type | Description |
Text |
clear()
public Text.Builder clear()
Type | Description |
Text.Builder |
clearEnText()
public Text.Builder clearEnText()
The English copy.
string en_text = 1;
Type | Description |
Text.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Text.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Text.Builder |
clearLocalizationState()
public Text.Builder clearLocalizationState()
Status of the localization.
.google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3;
Type | Description |
Text.Builder | This builder for chaining. |
clearLocalizedText()
public Text.Builder clearLocalizedText()
The requested localized copy (if applicable).
string localized_text = 2;
Type | Description |
Text.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Text.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Text.Builder |
clone()
public Text.Builder clone()
Type | Description |
Text.Builder |
getDefaultInstanceForType()
public Text getDefaultInstanceForType()
Type | Description |
Text |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getEnText()
public String getEnText()
The English copy.
string en_text = 1;
Type | Description |
String | The enText. |
getEnTextBytes()
public ByteString getEnTextBytes()
The English copy.
string en_text = 1;
Type | Description |
ByteString | The bytes for enText. |
getLocalizationState()
public LocalizationState getLocalizationState()
Status of the localization.
.google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3;
Type | Description |
LocalizationState | The localizationState. |
getLocalizationStateValue()
public int getLocalizationStateValue()
Status of the localization.
.google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3;
Type | Description |
int | The enum numeric value on the wire for localizationState. |
getLocalizedText()
public String getLocalizedText()
The requested localized copy (if applicable).
string localized_text = 2;
Type | Description |
String | The localizedText. |
getLocalizedTextBytes()
public ByteString getLocalizedTextBytes()
The requested localized copy (if applicable).
string localized_text = 2;
Type | Description |
ByteString | The bytes for localizedText. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(Text other)
public Text.Builder mergeFrom(Text other)
Name | Description |
other | Text |
Type | Description |
Text.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Text.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Text.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Text.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Text.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Text.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Text.Builder |
setEnText(String value)
public Text.Builder setEnText(String value)
The English copy.
string en_text = 1;
Name | Description |
value | String The enText to set. |
Type | Description |
Text.Builder | This builder for chaining. |
setEnTextBytes(ByteString value)
public Text.Builder setEnTextBytes(ByteString value)
The English copy.
string en_text = 1;
Name | Description |
value | ByteString The bytes for enText to set. |
Type | Description |
Text.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Text.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Text.Builder |
setLocalizationState(LocalizationState value)
public Text.Builder setLocalizationState(LocalizationState value)
Status of the localization.
.google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3;
Name | Description |
value | LocalizationState The localizationState to set. |
Type | Description |
Text.Builder | This builder for chaining. |
setLocalizationStateValue(int value)
public Text.Builder setLocalizationStateValue(int value)
Status of the localization.
.google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3;
Name | Description |
value | int The enum numeric value on the wire for localizationState to set. |
Type | Description |
Text.Builder | This builder for chaining. |
setLocalizedText(String value)
public Text.Builder setLocalizedText(String value)
The requested localized copy (if applicable).
string localized_text = 2;
Name | Description |
value | String The localizedText to set. |
Type | Description |
Text.Builder | This builder for chaining. |
setLocalizedTextBytes(ByteString value)
public Text.Builder setLocalizedTextBytes(ByteString value)
The requested localized copy (if applicable).
string localized_text = 2;
Name | Description |
value | ByteString The bytes for localizedText to set. |
Type | Description |
Text.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Text.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Text.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Text.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Text.Builder |