public static final class AdaptiveMtTranslateResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateResponse.Builder> implements AdaptiveMtTranslateResponseOrBuilder
An AdaptiveMtTranslate response.Protobuf type
google.cloud.translation.v3.AdaptiveMtTranslateResponsegetAllFields, 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<AdaptiveMtTranslateResponse.Builder>public AdaptiveMtTranslateResponse.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateResponse.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<AdaptiveMtTranslateResponse.Builder>public AdaptiveMtTranslateResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AdaptiveMtTranslateResponse build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AdaptiveMtTranslateResponse buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AdaptiveMtTranslateResponse.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateResponse.Builder>public AdaptiveMtTranslateResponse.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<AdaptiveMtTranslateResponse.Builder>public AdaptiveMtTranslateResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateResponse.Builder>public AdaptiveMtTranslateResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateResponse.Builder>public AdaptiveMtTranslateResponse.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<AdaptiveMtTranslateResponse.Builder>public AdaptiveMtTranslateResponse.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<AdaptiveMtTranslateResponse.Builder>public AdaptiveMtTranslateResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AdaptiveMtTranslateResponse.Builder>public AdaptiveMtTranslateResponse.Builder mergeFrom(AdaptiveMtTranslateResponse other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateResponse.Builder>public AdaptiveMtTranslateResponse.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<AdaptiveMtTranslateResponse.Builder>IOExceptionpublic List<AdaptiveMtTranslation> getTranslationsList()
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getTranslationsList in interface AdaptiveMtTranslateResponseOrBuilderpublic int getTranslationsCount()
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getTranslationsCount in interface AdaptiveMtTranslateResponseOrBuilderpublic AdaptiveMtTranslation getTranslations(int index)
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getTranslations in interface AdaptiveMtTranslateResponseOrBuilderpublic AdaptiveMtTranslateResponse.Builder setTranslations(int index, AdaptiveMtTranslation value)
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
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];
public AdaptiveMtTranslateResponse.Builder addTranslations(AdaptiveMtTranslation value)
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
public AdaptiveMtTranslateResponse.Builder addTranslations(int index, AdaptiveMtTranslation value)
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
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];
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];
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];
public AdaptiveMtTranslateResponse.Builder clearTranslations()
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
public AdaptiveMtTranslateResponse.Builder removeTranslations(int index)
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
public AdaptiveMtTranslation.Builder getTranslationsBuilder(int index)
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
public AdaptiveMtTranslationOrBuilder getTranslationsOrBuilder(int index)
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getTranslationsOrBuilder in interface AdaptiveMtTranslateResponseOrBuilderpublic List<? extends AdaptiveMtTranslationOrBuilder> getTranslationsOrBuilderList()
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getTranslationsOrBuilderList in interface AdaptiveMtTranslateResponseOrBuilderpublic AdaptiveMtTranslation.Builder addTranslationsBuilder()
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
public AdaptiveMtTranslation.Builder addTranslationsBuilder(int index)
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
public List<AdaptiveMtTranslation.Builder> getTranslationsBuilderList()
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
public String getLanguageCode()
Output only. The translation's language code.
string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];getLanguageCode in interface AdaptiveMtTranslateResponseOrBuilderpublic com.google.protobuf.ByteString getLanguageCodeBytes()
Output only. The translation's language code.
string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];getLanguageCodeBytes in interface AdaptiveMtTranslateResponseOrBuilderpublic AdaptiveMtTranslateResponse.Builder setLanguageCode(String value)
Output only. The translation's language code.
string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The languageCode to set.public AdaptiveMtTranslateResponse.Builder clearLanguageCode()
Output only. The translation's language code.
string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];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];value - The bytes for languageCode to set.public List<AdaptiveMtTranslation> 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;
getGlossaryTranslationsList in interface AdaptiveMtTranslateResponseOrBuilderpublic 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;
getGlossaryTranslationsCount in interface AdaptiveMtTranslateResponseOrBuilderpublic AdaptiveMtTranslation getGlossaryTranslations(int index)
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;
getGlossaryTranslations in interface AdaptiveMtTranslateResponseOrBuilderpublic 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;
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;
public AdaptiveMtTranslateResponse.Builder addGlossaryTranslations(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;
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;
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;
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;
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;
public AdaptiveMtTranslateResponse.Builder 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;
public AdaptiveMtTranslateResponse.Builder removeGlossaryTranslations(int index)
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;
public AdaptiveMtTranslation.Builder getGlossaryTranslationsBuilder(int index)
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;
public AdaptiveMtTranslationOrBuilder getGlossaryTranslationsOrBuilder(int index)
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 in interface AdaptiveMtTranslateResponseOrBuilderpublic List<? extends AdaptiveMtTranslationOrBuilder> 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;
getGlossaryTranslationsOrBuilderList in interface AdaptiveMtTranslateResponseOrBuilderpublic AdaptiveMtTranslation.Builder 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;
public AdaptiveMtTranslation.Builder addGlossaryTranslationsBuilder(int index)
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;
public List<AdaptiveMtTranslation.Builder> 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;
public final AdaptiveMtTranslateResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateResponse.Builder>public final AdaptiveMtTranslateResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateResponse.Builder>Copyright © 2024 Google LLC. All rights reserved.