Class Text.Builder (0.17.0)

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

Implements

TextOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Text.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Text.Builder
Overrides

build()

public Text build()
Returns
TypeDescription
Text

buildPartial()

public Text buildPartial()
Returns
TypeDescription
Text

clear()

public Text.Builder clear()
Returns
TypeDescription
Text.Builder
Overrides

clearEnText()

public Text.Builder clearEnText()

The English copy.

string en_text = 1;

Returns
TypeDescription
Text.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Text.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Text.Builder
Overrides

clearLocalizationState()

public Text.Builder clearLocalizationState()

Status of the localization.

.google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3;

Returns
TypeDescription
Text.Builder

This builder for chaining.

clearLocalizedText()

public Text.Builder clearLocalizedText()

The requested localized copy (if applicable).

string localized_text = 2;

Returns
TypeDescription
Text.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Text.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Text.Builder
Overrides

clone()

public Text.Builder clone()
Returns
TypeDescription
Text.Builder
Overrides

getDefaultInstanceForType()

public Text getDefaultInstanceForType()
Returns
TypeDescription
Text

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnText()

public String getEnText()

The English copy.

string en_text = 1;

Returns
TypeDescription
String

The enText.

getEnTextBytes()

public ByteString getEnTextBytes()

The English copy.

string en_text = 1;

Returns
TypeDescription
ByteString

The bytes for enText.

getLocalizationState()

public LocalizationState getLocalizationState()

Status of the localization.

.google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3;

Returns
TypeDescription
LocalizationState

The localizationState.

getLocalizationStateValue()

public int getLocalizationStateValue()

Status of the localization.

.google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for localizationState.

getLocalizedText()

public String getLocalizedText()

The requested localized copy (if applicable).

string localized_text = 2;

Returns
TypeDescription
String

The localizedText.

getLocalizedTextBytes()

public ByteString getLocalizedTextBytes()

The requested localized copy (if applicable).

string localized_text = 2;

Returns
TypeDescription
ByteString

The bytes for localizedText.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Text other)

public Text.Builder mergeFrom(Text other)
Parameter
NameDescription
otherText
Returns
TypeDescription
Text.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Text.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Text.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Text.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Text.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Text.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Text.Builder
Overrides

setEnText(String value)

public Text.Builder setEnText(String value)

The English copy.

string en_text = 1;

Parameter
NameDescription
valueString

The enText to set.

Returns
TypeDescription
Text.Builder

This builder for chaining.

setEnTextBytes(ByteString value)

public Text.Builder setEnTextBytes(ByteString value)

The English copy.

string en_text = 1;

Parameter
NameDescription
valueByteString

The bytes for enText to set.

Returns
TypeDescription
Text.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Text.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Text.Builder
Overrides

setLocalizationState(LocalizationState value)

public Text.Builder setLocalizationState(LocalizationState value)

Status of the localization.

.google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3;

Parameter
NameDescription
valueLocalizationState

The localizationState to set.

Returns
TypeDescription
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;

Parameter
NameDescription
valueint

The enum numeric value on the wire for localizationState to set.

Returns
TypeDescription
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;

Parameter
NameDescription
valueString

The localizedText to set.

Returns
TypeDescription
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;

Parameter
NameDescription
valueByteString

The bytes for localizedText to set.

Returns
TypeDescription
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)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Text.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Text.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Text.Builder
Overrides