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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
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;
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;
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;
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;
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;
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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public AdaptiveMtTranslateRequest.ReferenceSentenceConfig build()
buildPartial()
public AdaptiveMtTranslateRequest.ReferenceSentenceConfig buildPartial()
clear()
public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clearSourceLanguageCode()
public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder clearSourceLanguageCode()
Source language code.
string source_language_code = 2;
clearTargetLanguageCode()
public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder clearTargetLanguageCode()
Target language code.
string target_language_code = 3;
clone()
public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder clone()
Overrides
getDefaultInstanceForType()
public AdaptiveMtTranslateRequest.ReferenceSentenceConfig getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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
|
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
|
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;
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;
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
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AdaptiveMtTranslateRequest.ReferenceSentenceConfig other)
public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder mergeFrom(AdaptiveMtTranslateRequest.ReferenceSentenceConfig other)
public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
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;
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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
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.
|
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.
|
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides