Package com.google.cloud.translate.v3
Class AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder>
com.google.cloud.translate.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder
- All Implemented Interfaces:
AdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AdaptiveMtTranslateRequest.ReferenceSentenceConfig
public static final class AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder>
implements AdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilder
Message of caller-provided reference configuration.Protobuf type
google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig-
Method Summary
Modifier and TypeMethodDescriptionaddAllReferenceSentencePairLists(Iterable<? extends AdaptiveMtTranslateRequest.ReferenceSentencePairList> values) Reference sentences pair lists.addReferenceSentencePairLists(int index, AdaptiveMtTranslateRequest.ReferenceSentencePairList value) Reference sentences pair lists.addReferenceSentencePairLists(int index, AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder builderForValue) Reference sentences pair lists.Reference sentences pair lists.addReferenceSentencePairLists(AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder builderForValue) Reference sentences pair lists.Reference sentences pair lists.addReferenceSentencePairListsBuilder(int index) Reference sentences pair lists.build()clear()Reference sentences pair lists.Source language code.Target language code.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetReferenceSentencePairLists(int index) Reference sentences pair lists.getReferenceSentencePairListsBuilder(int index) Reference sentences pair lists.Reference sentences pair lists.intReference sentences pair lists.Reference sentences pair lists.getReferenceSentencePairListsOrBuilder(int index) Reference sentences pair lists.Reference sentences pair lists.Source language code.com.google.protobuf.ByteStringSource language code.Target language code.com.google.protobuf.ByteStringTarget language code.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeReferenceSentencePairLists(int index) Reference sentences pair lists.setReferenceSentencePairLists(int index, AdaptiveMtTranslateRequest.ReferenceSentencePairList value) Reference sentences pair lists.setReferenceSentencePairLists(int index, AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder builderForValue) Reference sentences pair lists.setSourceLanguageCode(String value) Source language code.setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) Source language code.setTargetLanguageCode(String value) Target language code.setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) Target language code.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder>
-
mergeFrom
public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder>- Throws:
IOException
-
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;- Specified by:
getReferenceSentencePairListsListin interfaceAdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilder
-
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;- Specified by:
getReferenceSentencePairListsCountin interfaceAdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilder
-
getReferenceSentencePairLists
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;- Specified by:
getReferenceSentencePairListsin interfaceAdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilder
-
setReferenceSentencePairLists
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
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; -
addReferenceSentencePairLists
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
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
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
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; -
addAllReferenceSentencePairLists
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; -
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; -
removeReferenceSentencePairLists
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; -
getReferenceSentencePairListsBuilder
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; -
getReferenceSentencePairListsOrBuilder
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;- Specified by:
getReferenceSentencePairListsOrBuilderin interfaceAdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilder
-
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;- Specified by:
getReferenceSentencePairListsOrBuilderListin interfaceAdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilder
-
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
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; -
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; -
getSourceLanguageCode
Source language code.
string source_language_code = 2;- Specified by:
getSourceLanguageCodein interfaceAdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilder- Returns:
- The sourceLanguageCode.
-
getSourceLanguageCodeBytes
public com.google.protobuf.ByteString getSourceLanguageCodeBytes()Source language code.
string source_language_code = 2;- Specified by:
getSourceLanguageCodeBytesin interfaceAdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilder- Returns:
- The bytes for sourceLanguageCode.
-
setSourceLanguageCode
public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder setSourceLanguageCode(String value) Source language code.
string source_language_code = 2;- Parameters:
value- The sourceLanguageCode to set.- Returns:
- This builder for chaining.
-
clearSourceLanguageCode
Source language code.
string source_language_code = 2;- Returns:
- This builder for chaining.
-
setSourceLanguageCodeBytes
public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) Source language code.
string source_language_code = 2;- Parameters:
value- The bytes for sourceLanguageCode to set.- Returns:
- This builder for chaining.
-
getTargetLanguageCode
Target language code.
string target_language_code = 3;- Specified by:
getTargetLanguageCodein interfaceAdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilder- Returns:
- The targetLanguageCode.
-
getTargetLanguageCodeBytes
public com.google.protobuf.ByteString getTargetLanguageCodeBytes()Target language code.
string target_language_code = 3;- Specified by:
getTargetLanguageCodeBytesin interfaceAdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilder- Returns:
- The bytes for targetLanguageCode.
-
setTargetLanguageCode
public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder setTargetLanguageCode(String value) Target language code.
string target_language_code = 3;- Parameters:
value- The targetLanguageCode to set.- Returns:
- This builder for chaining.
-
clearTargetLanguageCode
Target language code.
string target_language_code = 3;- Returns:
- This builder for chaining.
-
setTargetLanguageCodeBytes
public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) Target language code.
string target_language_code = 3;- Parameters:
value- The bytes for targetLanguageCode to set.- Returns:
- This builder for chaining.
-