Class AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder (2.49.0)

public static final class AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder extends GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder> implements AdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilder

Message of caller-provided reference configuration.

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

Inheritance

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

Static Methods

getDescriptor()

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

Methods

addAllReferenceSentencePairLists(Iterable<? extends AdaptiveMtTranslateRequest.ReferenceSentencePairList> values)

public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder addAllReferenceSentencePairLists(Iterable<? extends AdaptiveMtTranslateRequest.ReferenceSentencePairList> values)

Reference sentences pair lists. Each list will be used as the references to translate the sentence under "content" field at the corresponding index. Length of the list is required to be equal to the length of "content" field.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList reference_sentence_pair_lists = 1;

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

addReferenceSentencePairLists(AdaptiveMtTranslateRequest.ReferenceSentencePairList value)

public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder addReferenceSentencePairLists(AdaptiveMtTranslateRequest.ReferenceSentencePairList value)

Reference sentences pair lists. Each list will be used as the references to translate the sentence under "content" field at the corresponding index. Length of the list is required to be equal to the length of "content" field.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList reference_sentence_pair_lists = 1;

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

addReferenceSentencePairLists(AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder builderForValue)

public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder addReferenceSentencePairLists(AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder builderForValue)

Reference sentences pair lists. Each list will be used as the references to translate the sentence under "content" field at the corresponding index. Length of the list is required to be equal to the length of "content" field.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList reference_sentence_pair_lists = 1;

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

addReferenceSentencePairLists(int index, AdaptiveMtTranslateRequest.ReferenceSentencePairList value)

public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder addReferenceSentencePairLists(int index, AdaptiveMtTranslateRequest.ReferenceSentencePairList value)

Reference sentences pair lists. Each list will be used as the references to translate the sentence under "content" field at the corresponding index. Length of the list is required to be equal to the length of "content" field.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList reference_sentence_pair_lists = 1;

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

addReferenceSentencePairLists(int index, AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder builderForValue)

public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder addReferenceSentencePairLists(int index, AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder builderForValue)

Reference sentences pair lists. Each list will be used as the references to translate the sentence under "content" field at the corresponding index. Length of the list is required to be equal to the length of "content" field.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList reference_sentence_pair_lists = 1;

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

addReferenceSentencePairListsBuilder()

public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder addReferenceSentencePairListsBuilder()

Reference sentences pair lists. Each list will be used as the references to translate the sentence under "content" field at the corresponding index. Length of the list is required to be equal to the length of "content" field.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList reference_sentence_pair_lists = 1;

Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder

addReferenceSentencePairListsBuilder(int index)

public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder addReferenceSentencePairListsBuilder(int index)

Reference sentences pair lists. Each list will be used as the references to translate the sentence under "content" field at the corresponding index. Length of the list is required to be equal to the length of "content" field.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList reference_sentence_pair_lists = 1;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReferenceSentencePairLists()

public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder clearReferenceSentencePairLists()

Reference sentences pair lists. Each list will be used as the references to translate the sentence under "content" field at the corresponding index. Length of the list is required to be equal to the length of "content" field.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList reference_sentence_pair_lists = 1;

Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder

clearSourceLanguageCode()

public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder clearSourceLanguageCode()

Source language code.

string source_language_code = 2;

Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder

This builder for chaining.

clearTargetLanguageCode()

public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder clearTargetLanguageCode()

Target language code.

string target_language_code = 3;

Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getReferenceSentencePairLists(int index)

public AdaptiveMtTranslateRequest.ReferenceSentencePairList getReferenceSentencePairLists(int index)

Reference sentences pair lists. Each list will be used as the references to translate the sentence under "content" field at the corresponding index. Length of the list is required to be equal to the length of "content" field.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList reference_sentence_pair_lists = 1;

Parameter
Name Description
index int
Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentencePairList

getReferenceSentencePairListsBuilder(int index)

public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder getReferenceSentencePairListsBuilder(int index)

Reference sentences pair lists. Each list will be used as the references to translate the sentence under "content" field at the corresponding index. Length of the list is required to be equal to the length of "content" field.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList reference_sentence_pair_lists = 1;

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

getReferenceSentencePairListsBuilderList()

public List<AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder> getReferenceSentencePairListsBuilderList()

Reference sentences pair lists. Each list will be used as the references to translate the sentence under "content" field at the corresponding index. Length of the list is required to be equal to the length of "content" field.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList reference_sentence_pair_lists = 1;

Returns
Type Description
List<Builder>

getReferenceSentencePairListsCount()

public int getReferenceSentencePairListsCount()

Reference sentences pair lists. Each list will be used as the references to translate the sentence under "content" field at the corresponding index. Length of the list is required to be equal to the length of "content" field.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList reference_sentence_pair_lists = 1;

Returns
Type Description
int

getReferenceSentencePairListsList()

public List<AdaptiveMtTranslateRequest.ReferenceSentencePairList> getReferenceSentencePairListsList()

Reference sentences pair lists. Each list will be used as the references to translate the sentence under "content" field at the corresponding index. Length of the list is required to be equal to the length of "content" field.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList reference_sentence_pair_lists = 1;

Returns
Type Description
List<ReferenceSentencePairList>

getReferenceSentencePairListsOrBuilder(int index)

public AdaptiveMtTranslateRequest.ReferenceSentencePairListOrBuilder getReferenceSentencePairListsOrBuilder(int index)

Reference sentences pair lists. Each list will be used as the references to translate the sentence under "content" field at the corresponding index. Length of the list is required to be equal to the length of "content" field.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList reference_sentence_pair_lists = 1;

Parameter
Name Description
index int
Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentencePairListOrBuilder

getReferenceSentencePairListsOrBuilderList()

public List<? extends AdaptiveMtTranslateRequest.ReferenceSentencePairListOrBuilder> getReferenceSentencePairListsOrBuilderList()

Reference sentences pair lists. Each list will be used as the references to translate the sentence under "content" field at the corresponding index. Length of the list is required to be equal to the length of "content" field.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList reference_sentence_pair_lists = 1;

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

getSourceLanguageCode()

public String getSourceLanguageCode()

Source language code.

string source_language_code = 2;

Returns
Type Description
String

The sourceLanguageCode.

getSourceLanguageCodeBytes()

public ByteString getSourceLanguageCodeBytes()

Source language code.

string source_language_code = 2;

Returns
Type Description
ByteString

The bytes for sourceLanguageCode.

getTargetLanguageCode()

public String getTargetLanguageCode()

Target language code.

string target_language_code = 3;

Returns
Type Description
String

The targetLanguageCode.

getTargetLanguageCodeBytes()

public ByteString getTargetLanguageCodeBytes()

Target language code.

string target_language_code = 3;

Returns
Type Description
ByteString

The bytes for targetLanguageCode.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AdaptiveMtTranslateRequest.ReferenceSentenceConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeReferenceSentencePairLists(int index)

public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder removeReferenceSentencePairLists(int index)

Reference sentences pair lists. Each list will be used as the references to translate the sentence under "content" field at the corresponding index. Length of the list is required to be equal to the length of "content" field.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList reference_sentence_pair_lists = 1;

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setReferenceSentencePairLists(int index, AdaptiveMtTranslateRequest.ReferenceSentencePairList value)

public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder setReferenceSentencePairLists(int index, AdaptiveMtTranslateRequest.ReferenceSentencePairList value)

Reference sentences pair lists. Each list will be used as the references to translate the sentence under "content" field at the corresponding index. Length of the list is required to be equal to the length of "content" field.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList reference_sentence_pair_lists = 1;

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

setReferenceSentencePairLists(int index, AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder builderForValue)

public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder setReferenceSentencePairLists(int index, AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder builderForValue)

Reference sentences pair lists. Each list will be used as the references to translate the sentence under "content" field at the corresponding index. Length of the list is required to be equal to the length of "content" field.

repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList reference_sentence_pair_lists = 1;

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

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

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

setSourceLanguageCode(String value)

public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder setSourceLanguageCode(String value)

Source language code.

string source_language_code = 2;

Parameter
Name Description
value String

The sourceLanguageCode to set.

Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder

This builder for chaining.

setSourceLanguageCodeBytes(ByteString value)

public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder setSourceLanguageCodeBytes(ByteString value)

Source language code.

string source_language_code = 2;

Parameter
Name Description
value ByteString

The bytes for sourceLanguageCode to set.

Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder

This builder for chaining.

setTargetLanguageCode(String value)

public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder setTargetLanguageCode(String value)

Target language code.

string target_language_code = 3;

Parameter
Name Description
value String

The targetLanguageCode to set.

Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder

This builder for chaining.

setTargetLanguageCodeBytes(ByteString value)

public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder setTargetLanguageCodeBytes(ByteString value)

Target language code.

string target_language_code = 3;

Parameter
Name Description
value ByteString

The bytes for targetLanguageCode to set.

Returns
Type Description
AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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