Package com.google.cloud.translate.v3
Class AdaptiveMtTranslateResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AdaptiveMtTranslateResponse.Builder>
com.google.cloud.translate.v3.AdaptiveMtTranslateResponse.Builder
- All Implemented Interfaces:
AdaptiveMtTranslateResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AdaptiveMtTranslateResponse
public static final class AdaptiveMtTranslateResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AdaptiveMtTranslateResponse.Builder>
implements AdaptiveMtTranslateResponseOrBuilder
An AdaptiveMtTranslate response.Protobuf type
google.cloud.translation.v3.AdaptiveMtTranslateResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllGlossaryTranslations(Iterable<? extends AdaptiveMtTranslation> values) Text translation response if a glossary is provided in the request.addAllTranslations(Iterable<? extends AdaptiveMtTranslation> values) Output only.addGlossaryTranslations(int index, AdaptiveMtTranslation value) Text translation response if a glossary is provided in the request.addGlossaryTranslations(int index, AdaptiveMtTranslation.Builder builderForValue) Text translation response if a glossary is provided in the request.Text translation response if a glossary is provided in the request.addGlossaryTranslations(AdaptiveMtTranslation.Builder builderForValue) Text translation response if a glossary is provided in the request.Text translation response if a glossary is provided in the request.addGlossaryTranslationsBuilder(int index) Text translation response if a glossary is provided in the request.addTranslations(int index, AdaptiveMtTranslation value) Output only.addTranslations(int index, AdaptiveMtTranslation.Builder builderForValue) Output only.Output only.addTranslations(AdaptiveMtTranslation.Builder builderForValue) Output only.Output only.addTranslationsBuilder(int index) Output only.build()clear()Text translation response if a glossary is provided in the request.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetGlossaryTranslations(int index) Text translation response if a glossary is provided in the request.getGlossaryTranslationsBuilder(int index) Text translation response if a glossary is provided in the request.Text translation response if a glossary is provided in the request.intText translation response if a glossary is provided in the request.Text translation response if a glossary is provided in the request.getGlossaryTranslationsOrBuilder(int index) Text translation response if a glossary is provided in the request.List<? extends AdaptiveMtTranslationOrBuilder>Text translation response if a glossary is provided in the request.Output only.com.google.protobuf.ByteStringOutput only.getTranslations(int index) Output only.getTranslationsBuilder(int index) Output only.Output only.intOutput only.Output only.getTranslationsOrBuilder(int index) Output only.List<? extends AdaptiveMtTranslationOrBuilder>Output only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeGlossaryTranslations(int index) Text translation response if a glossary is provided in the request.removeTranslations(int index) Output only.setGlossaryTranslations(int index, AdaptiveMtTranslation value) Text translation response if a glossary is provided in the request.setGlossaryTranslations(int index, AdaptiveMtTranslation.Builder builderForValue) Text translation response if a glossary is provided in the request.setLanguageCode(String value) Output only.setLanguageCodeBytes(com.google.protobuf.ByteString value) Output only.setTranslations(int index, AdaptiveMtTranslation value) Output only.setTranslations(int index, AdaptiveMtTranslation.Builder builderForValue) Output only.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<AdaptiveMtTranslateResponse.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<AdaptiveMtTranslateResponse.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<AdaptiveMtTranslateResponse.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
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AdaptiveMtTranslateResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AdaptiveMtTranslateResponse.Builder>
-
mergeFrom
public AdaptiveMtTranslateResponse.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<AdaptiveMtTranslateResponse.Builder>- Throws:
IOException
-
getTranslationsList
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTranslationsListin interfaceAdaptiveMtTranslateResponseOrBuilder
-
getTranslationsCount
public int getTranslationsCount()Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTranslationsCountin interfaceAdaptiveMtTranslateResponseOrBuilder
-
getTranslations
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTranslationsin interfaceAdaptiveMtTranslateResponseOrBuilder
-
setTranslations
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setTranslations
public AdaptiveMtTranslateResponse.Builder setTranslations(int index, AdaptiveMtTranslation.Builder builderForValue) Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addTranslations
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addTranslations
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addTranslations
public AdaptiveMtTranslateResponse.Builder addTranslations(AdaptiveMtTranslation.Builder builderForValue) Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addTranslations
public AdaptiveMtTranslateResponse.Builder addTranslations(int index, AdaptiveMtTranslation.Builder builderForValue) Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAllTranslations
public AdaptiveMtTranslateResponse.Builder addAllTranslations(Iterable<? extends AdaptiveMtTranslation> values) Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearTranslations
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
removeTranslations
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getTranslationsBuilder
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getTranslationsOrBuilder
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTranslationsOrBuilderin interfaceAdaptiveMtTranslateResponseOrBuilder
-
getTranslationsOrBuilderList
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTranslationsOrBuilderListin interfaceAdaptiveMtTranslateResponseOrBuilder
-
addTranslationsBuilder
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addTranslationsBuilder
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getTranslationsBuilderList
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getLanguageCode
Output only. The translation's language code.
string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLanguageCodein interfaceAdaptiveMtTranslateResponseOrBuilder- Returns:
- The languageCode.
-
getLanguageCodeBytes
public com.google.protobuf.ByteString getLanguageCodeBytes()Output only. The translation's language code.
string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLanguageCodeBytesin interfaceAdaptiveMtTranslateResponseOrBuilder- Returns:
- The bytes for languageCode.
-
setLanguageCode
Output only. The translation's language code.
string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The languageCode to set.- Returns:
- This builder for chaining.
-
clearLanguageCode
Output only. The translation's language code.
string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setLanguageCodeBytes
public AdaptiveMtTranslateResponse.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) Output only. The translation's language code.
string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for languageCode to set.- Returns:
- This builder for chaining.
-
getGlossaryTranslationsList
Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;- Specified by:
getGlossaryTranslationsListin interfaceAdaptiveMtTranslateResponseOrBuilder
-
getGlossaryTranslationsCount
public int getGlossaryTranslationsCount()Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;- Specified by:
getGlossaryTranslationsCountin interfaceAdaptiveMtTranslateResponseOrBuilder
-
getGlossaryTranslations
Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;- Specified by:
getGlossaryTranslationsin interfaceAdaptiveMtTranslateResponseOrBuilder
-
setGlossaryTranslations
public AdaptiveMtTranslateResponse.Builder setGlossaryTranslations(int index, AdaptiveMtTranslation value) Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4; -
setGlossaryTranslations
public AdaptiveMtTranslateResponse.Builder setGlossaryTranslations(int index, AdaptiveMtTranslation.Builder builderForValue) Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4; -
addGlossaryTranslations
Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4; -
addGlossaryTranslations
public AdaptiveMtTranslateResponse.Builder addGlossaryTranslations(int index, AdaptiveMtTranslation value) Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4; -
addGlossaryTranslations
public AdaptiveMtTranslateResponse.Builder addGlossaryTranslations(AdaptiveMtTranslation.Builder builderForValue) Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4; -
addGlossaryTranslations
public AdaptiveMtTranslateResponse.Builder addGlossaryTranslations(int index, AdaptiveMtTranslation.Builder builderForValue) Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4; -
addAllGlossaryTranslations
public AdaptiveMtTranslateResponse.Builder addAllGlossaryTranslations(Iterable<? extends AdaptiveMtTranslation> values) Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4; -
clearGlossaryTranslations
Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4; -
removeGlossaryTranslations
Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4; -
getGlossaryTranslationsBuilder
Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4; -
getGlossaryTranslationsOrBuilder
Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;- Specified by:
getGlossaryTranslationsOrBuilderin interfaceAdaptiveMtTranslateResponseOrBuilder
-
getGlossaryTranslationsOrBuilderList
Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;- Specified by:
getGlossaryTranslationsOrBuilderListin interfaceAdaptiveMtTranslateResponseOrBuilder
-
addGlossaryTranslationsBuilder
Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4; -
addGlossaryTranslationsBuilder
Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4; -
getGlossaryTranslationsBuilderList
Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
-