Class RomanizeTextResponse.Builder (2.49.0)

public static final class RomanizeTextResponse.Builder extends GeneratedMessageV3.Builder<RomanizeTextResponse.Builder> implements RomanizeTextResponseOrBuilder

The response message for synchronous romanization.

Protobuf type google.cloud.translation.v3.RomanizeTextResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllRomanizations(Iterable<? extends Romanization> values)

public RomanizeTextResponse.Builder addAllRomanizations(Iterable<? extends Romanization> values)

Text romanization responses. This field has the same length as contents.

repeated .google.cloud.translation.v3.Romanization romanizations = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.translate.v3.Romanization>
Returns
Type Description
RomanizeTextResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RomanizeTextResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RomanizeTextResponse.Builder
Overrides

addRomanizations(Romanization value)

public RomanizeTextResponse.Builder addRomanizations(Romanization value)

Text romanization responses. This field has the same length as contents.

repeated .google.cloud.translation.v3.Romanization romanizations = 1;

Parameter
Name Description
value Romanization
Returns
Type Description
RomanizeTextResponse.Builder

addRomanizations(Romanization.Builder builderForValue)

public RomanizeTextResponse.Builder addRomanizations(Romanization.Builder builderForValue)

Text romanization responses. This field has the same length as contents.

repeated .google.cloud.translation.v3.Romanization romanizations = 1;

Parameter
Name Description
builderForValue Romanization.Builder
Returns
Type Description
RomanizeTextResponse.Builder

addRomanizations(int index, Romanization value)

public RomanizeTextResponse.Builder addRomanizations(int index, Romanization value)

Text romanization responses. This field has the same length as contents.

repeated .google.cloud.translation.v3.Romanization romanizations = 1;

Parameters
Name Description
index int
value Romanization
Returns
Type Description
RomanizeTextResponse.Builder

addRomanizations(int index, Romanization.Builder builderForValue)

public RomanizeTextResponse.Builder addRomanizations(int index, Romanization.Builder builderForValue)

Text romanization responses. This field has the same length as contents.

repeated .google.cloud.translation.v3.Romanization romanizations = 1;

Parameters
Name Description
index int
builderForValue Romanization.Builder
Returns
Type Description
RomanizeTextResponse.Builder

addRomanizationsBuilder()

public Romanization.Builder addRomanizationsBuilder()

Text romanization responses. This field has the same length as contents.

repeated .google.cloud.translation.v3.Romanization romanizations = 1;

Returns
Type Description
Romanization.Builder

addRomanizationsBuilder(int index)

public Romanization.Builder addRomanizationsBuilder(int index)

Text romanization responses. This field has the same length as contents.

repeated .google.cloud.translation.v3.Romanization romanizations = 1;

Parameter
Name Description
index int
Returns
Type Description
Romanization.Builder

build()

public RomanizeTextResponse build()
Returns
Type Description
RomanizeTextResponse

buildPartial()

public RomanizeTextResponse buildPartial()
Returns
Type Description
RomanizeTextResponse

clear()

public RomanizeTextResponse.Builder clear()
Returns
Type Description
RomanizeTextResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public RomanizeTextResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RomanizeTextResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RomanizeTextResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RomanizeTextResponse.Builder
Overrides

clearRomanizations()

public RomanizeTextResponse.Builder clearRomanizations()

Text romanization responses. This field has the same length as contents.

repeated .google.cloud.translation.v3.Romanization romanizations = 1;

Returns
Type Description
RomanizeTextResponse.Builder

clone()

public RomanizeTextResponse.Builder clone()
Returns
Type Description
RomanizeTextResponse.Builder
Overrides

getDefaultInstanceForType()

public RomanizeTextResponse getDefaultInstanceForType()
Returns
Type Description
RomanizeTextResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getRomanizations(int index)

public Romanization getRomanizations(int index)

Text romanization responses. This field has the same length as contents.

repeated .google.cloud.translation.v3.Romanization romanizations = 1;

Parameter
Name Description
index int
Returns
Type Description
Romanization

getRomanizationsBuilder(int index)

public Romanization.Builder getRomanizationsBuilder(int index)

Text romanization responses. This field has the same length as contents.

repeated .google.cloud.translation.v3.Romanization romanizations = 1;

Parameter
Name Description
index int
Returns
Type Description
Romanization.Builder

getRomanizationsBuilderList()

public List<Romanization.Builder> getRomanizationsBuilderList()

Text romanization responses. This field has the same length as contents.

repeated .google.cloud.translation.v3.Romanization romanizations = 1;

Returns
Type Description
List<Builder>

getRomanizationsCount()

public int getRomanizationsCount()

Text romanization responses. This field has the same length as contents.

repeated .google.cloud.translation.v3.Romanization romanizations = 1;

Returns
Type Description
int

getRomanizationsList()

public List<Romanization> getRomanizationsList()

Text romanization responses. This field has the same length as contents.

repeated .google.cloud.translation.v3.Romanization romanizations = 1;

Returns
Type Description
List<Romanization>

getRomanizationsOrBuilder(int index)

public RomanizationOrBuilder getRomanizationsOrBuilder(int index)

Text romanization responses. This field has the same length as contents.

repeated .google.cloud.translation.v3.Romanization romanizations = 1;

Parameter
Name Description
index int
Returns
Type Description
RomanizationOrBuilder

getRomanizationsOrBuilderList()

public List<? extends RomanizationOrBuilder> getRomanizationsOrBuilderList()

Text romanization responses. This field has the same length as contents.

repeated .google.cloud.translation.v3.Romanization romanizations = 1;

Returns
Type Description
List<? extends com.google.cloud.translate.v3.RomanizationOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RomanizeTextResponse other)

public RomanizeTextResponse.Builder mergeFrom(RomanizeTextResponse other)
Parameter
Name Description
other RomanizeTextResponse
Returns
Type Description
RomanizeTextResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RomanizeTextResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RomanizeTextResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RomanizeTextResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RomanizeTextResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RomanizeTextResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RomanizeTextResponse.Builder
Overrides

removeRomanizations(int index)

public RomanizeTextResponse.Builder removeRomanizations(int index)

Text romanization responses. This field has the same length as contents.

repeated .google.cloud.translation.v3.Romanization romanizations = 1;

Parameter
Name Description
index int
Returns
Type Description
RomanizeTextResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public RomanizeTextResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RomanizeTextResponse.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RomanizeTextResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RomanizeTextResponse.Builder
Overrides

setRomanizations(int index, Romanization value)

public RomanizeTextResponse.Builder setRomanizations(int index, Romanization value)

Text romanization responses. This field has the same length as contents.

repeated .google.cloud.translation.v3.Romanization romanizations = 1;

Parameters
Name Description
index int
value Romanization
Returns
Type Description
RomanizeTextResponse.Builder

setRomanizations(int index, Romanization.Builder builderForValue)

public RomanizeTextResponse.Builder setRomanizations(int index, Romanization.Builder builderForValue)

Text romanization responses. This field has the same length as contents.

repeated .google.cloud.translation.v3.Romanization romanizations = 1;

Parameters
Name Description
index int
builderForValue Romanization.Builder
Returns
Type Description
RomanizeTextResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final RomanizeTextResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RomanizeTextResponse.Builder
Overrides