Class AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder (2.54.0)

public static final class AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder extends GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder> implements AdaptiveMtTranslateRequest.ReferenceSentencePairListOrBuilder

A list of reference sentence pairs.

Protobuf type google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder

Static Methods

getDescriptor()

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

Methods

addAllReferenceSentencePairs(Iterable<? extends AdaptiveMtTranslateRequest.ReferenceSentencePair> values)

public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder addAllReferenceSentencePairs(Iterable<? extends AdaptiveMtTranslateRequest.ReferenceSentencePair> values)

Reference sentence pairs.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.translate.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair>
Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder

addReferenceSentencePairs(AdaptiveMtTranslateRequest.ReferenceSentencePair value)

public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder addReferenceSentencePairs(AdaptiveMtTranslateRequest.ReferenceSentencePair value)

Reference sentence pairs.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;

Parameter
Name Description
value AdaptiveMtTranslateRequest.ReferenceSentencePair
Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder

addReferenceSentencePairs(AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder builderForValue)

public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder addReferenceSentencePairs(AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder builderForValue)

Reference sentence pairs.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;

Parameter
Name Description
builderForValue AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder
Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder

addReferenceSentencePairs(int index, AdaptiveMtTranslateRequest.ReferenceSentencePair value)

public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder addReferenceSentencePairs(int index, AdaptiveMtTranslateRequest.ReferenceSentencePair value)

Reference sentence pairs.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;

Parameters
Name Description
index int
value AdaptiveMtTranslateRequest.ReferenceSentencePair
Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder

addReferenceSentencePairs(int index, AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder builderForValue)

public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder addReferenceSentencePairs(int index, AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder builderForValue)

Reference sentence pairs.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;

Parameters
Name Description
index int
builderForValue AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder
Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder

addReferenceSentencePairsBuilder()

public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder addReferenceSentencePairsBuilder()

Reference sentence pairs.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;

Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder

addReferenceSentencePairsBuilder(int index)

public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder addReferenceSentencePairsBuilder(int index)

Reference sentence pairs.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;

Parameter
Name Description
index int
Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AdaptiveMtTranslateRequest.ReferenceSentencePairList build()
Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentencePairList

buildPartial()

public AdaptiveMtTranslateRequest.ReferenceSentencePairList buildPartial()
Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentencePairList

clear()

public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder clear()
Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReferenceSentencePairs()

public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder clearReferenceSentencePairs()

Reference sentence pairs.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;

Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder

clone()

public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder clone()
Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder
Overrides

getDefaultInstanceForType()

public AdaptiveMtTranslateRequest.ReferenceSentencePairList getDefaultInstanceForType()
Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentencePairList

getDescriptorForType()

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

getReferenceSentencePairs(int index)

public AdaptiveMtTranslateRequest.ReferenceSentencePair getReferenceSentencePairs(int index)

Reference sentence pairs.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;

Parameter
Name Description
index int
Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentencePair

getReferenceSentencePairsBuilder(int index)

public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder getReferenceSentencePairsBuilder(int index)

Reference sentence pairs.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;

Parameter
Name Description
index int
Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder

getReferenceSentencePairsBuilderList()

public List<AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder> getReferenceSentencePairsBuilderList()

Reference sentence pairs.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;

Returns
Type Description
List<Builder>

getReferenceSentencePairsCount()

public int getReferenceSentencePairsCount()

Reference sentence pairs.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;

Returns
Type Description
int

getReferenceSentencePairsList()

public List<AdaptiveMtTranslateRequest.ReferenceSentencePair> getReferenceSentencePairsList()

Reference sentence pairs.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;

Returns
Type Description
List<ReferenceSentencePair>

getReferenceSentencePairsOrBuilder(int index)

public AdaptiveMtTranslateRequest.ReferenceSentencePairOrBuilder getReferenceSentencePairsOrBuilder(int index)

Reference sentence pairs.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;

Parameter
Name Description
index int
Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentencePairOrBuilder

getReferenceSentencePairsOrBuilderList()

public List<? extends AdaptiveMtTranslateRequest.ReferenceSentencePairOrBuilder> getReferenceSentencePairsOrBuilderList()

Reference sentence pairs.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AdaptiveMtTranslateRequest.ReferenceSentencePairList other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeReferenceSentencePairs(int index)

public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder removeReferenceSentencePairs(int index)

Reference sentence pairs.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;

Parameter
Name Description
index int
Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setReferenceSentencePairs(int index, AdaptiveMtTranslateRequest.ReferenceSentencePair value)

public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder setReferenceSentencePairs(int index, AdaptiveMtTranslateRequest.ReferenceSentencePair value)

Reference sentence pairs.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;

Parameters
Name Description
index int
value AdaptiveMtTranslateRequest.ReferenceSentencePair
Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder

setReferenceSentencePairs(int index, AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder builderForValue)

public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder setReferenceSentencePairs(int index, AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder builderForValue)

Reference sentence pairs.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;

Parameters
Name Description
index int
builderForValue AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder
Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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