public static final class AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder> implements AdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilder
Message of caller-provided reference configuration.Protobuf type
google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfiggetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder>public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder>public AdaptiveMtTranslateRequest.ReferenceSentenceConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AdaptiveMtTranslateRequest.ReferenceSentenceConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AdaptiveMtTranslateRequest.ReferenceSentenceConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder>public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder>public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder>public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder>public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder>public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder>public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder>public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder mergeFrom(AdaptiveMtTranslateRequest.ReferenceSentenceConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder>public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder>IOExceptionpublic 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;
getReferenceSentencePairListsList in interface AdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilderpublic 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;
getReferenceSentencePairListsCount in interface AdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilderpublic 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;
getReferenceSentencePairLists in interface AdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilderpublic 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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
getReferenceSentencePairListsOrBuilder in interface AdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilderpublic 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;
getReferenceSentencePairListsOrBuilderList in interface AdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilderpublic 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;
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;
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;
public String getSourceLanguageCode()
Source language code.
string source_language_code = 2;getSourceLanguageCode in interface AdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilderpublic com.google.protobuf.ByteString getSourceLanguageCodeBytes()
Source language code.
string source_language_code = 2;getSourceLanguageCodeBytes in interface AdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilderpublic AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder setSourceLanguageCode(String value)
Source language code.
string source_language_code = 2;value - The sourceLanguageCode to set.public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder clearSourceLanguageCode()
Source language code.
string source_language_code = 2;public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value)
Source language code.
string source_language_code = 2;value - The bytes for sourceLanguageCode to set.public String getTargetLanguageCode()
Target language code.
string target_language_code = 3;getTargetLanguageCode in interface AdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilderpublic com.google.protobuf.ByteString getTargetLanguageCodeBytes()
Target language code.
string target_language_code = 3;getTargetLanguageCodeBytes in interface AdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilderpublic AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder setTargetLanguageCode(String value)
Target language code.
string target_language_code = 3;value - The targetLanguageCode to set.public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder clearTargetLanguageCode()
Target language code.
string target_language_code = 3;public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value)
Target language code.
string target_language_code = 3;value - The bytes for targetLanguageCode to set.public final AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder>public final AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder>Copyright © 2024 Google LLC. All rights reserved.