Package com.google.cloud.translate.v3
Class TranslateTextResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
-
- com.google.cloud.translate.v3.TranslateTextResponse.Builder
-
- All Implemented Interfaces:
TranslateTextResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TranslateTextResponse
public static final class TranslateTextResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.Builder> implements TranslateTextResponseOrBuilder
Protobuf typegoogle.cloud.translation.v3.TranslateTextResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TranslateTextResponse.BuilderaddAllGlossaryTranslations(Iterable<? extends Translation> values)Text translation responses if a glossary is provided in the request.TranslateTextResponse.BuilderaddAllTranslations(Iterable<? extends Translation> values)Text translation responses with no glossary applied.TranslateTextResponse.BuilderaddGlossaryTranslations(int index, Translation value)Text translation responses if a glossary is provided in the request.TranslateTextResponse.BuilderaddGlossaryTranslations(int index, Translation.Builder builderForValue)Text translation responses if a glossary is provided in the request.TranslateTextResponse.BuilderaddGlossaryTranslations(Translation value)Text translation responses if a glossary is provided in the request.TranslateTextResponse.BuilderaddGlossaryTranslations(Translation.Builder builderForValue)Text translation responses if a glossary is provided in the request.Translation.BuilderaddGlossaryTranslationsBuilder()Text translation responses if a glossary is provided in the request.Translation.BuilderaddGlossaryTranslationsBuilder(int index)Text translation responses if a glossary is provided in the request.TranslateTextResponse.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TranslateTextResponse.BuilderaddTranslations(int index, Translation value)Text translation responses with no glossary applied.TranslateTextResponse.BuilderaddTranslations(int index, Translation.Builder builderForValue)Text translation responses with no glossary applied.TranslateTextResponse.BuilderaddTranslations(Translation value)Text translation responses with no glossary applied.TranslateTextResponse.BuilderaddTranslations(Translation.Builder builderForValue)Text translation responses with no glossary applied.Translation.BuilderaddTranslationsBuilder()Text translation responses with no glossary applied.Translation.BuilderaddTranslationsBuilder(int index)Text translation responses with no glossary applied.TranslateTextResponsebuild()TranslateTextResponsebuildPartial()TranslateTextResponse.Builderclear()TranslateTextResponse.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)TranslateTextResponse.BuilderclearGlossaryTranslations()Text translation responses if a glossary is provided in the request.TranslateTextResponse.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)TranslateTextResponse.BuilderclearTranslations()Text translation responses with no glossary applied.TranslateTextResponse.Builderclone()TranslateTextResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()TranslationgetGlossaryTranslations(int index)Text translation responses if a glossary is provided in the request.Translation.BuildergetGlossaryTranslationsBuilder(int index)Text translation responses if a glossary is provided in the request.List<Translation.Builder>getGlossaryTranslationsBuilderList()Text translation responses if a glossary is provided in the request.intgetGlossaryTranslationsCount()Text translation responses if a glossary is provided in the request.List<Translation>getGlossaryTranslationsList()Text translation responses if a glossary is provided in the request.TranslationOrBuildergetGlossaryTranslationsOrBuilder(int index)Text translation responses if a glossary is provided in the request.List<? extends TranslationOrBuilder>getGlossaryTranslationsOrBuilderList()Text translation responses if a glossary is provided in the request.TranslationgetTranslations(int index)Text translation responses with no glossary applied.Translation.BuildergetTranslationsBuilder(int index)Text translation responses with no glossary applied.List<Translation.Builder>getTranslationsBuilderList()Text translation responses with no glossary applied.intgetTranslationsCount()Text translation responses with no glossary applied.List<Translation>getTranslationsList()Text translation responses with no glossary applied.TranslationOrBuildergetTranslationsOrBuilder(int index)Text translation responses with no glossary applied.List<? extends TranslationOrBuilder>getTranslationsOrBuilderList()Text translation responses with no glossary applied.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()TranslateTextResponse.BuildermergeFrom(TranslateTextResponse other)TranslateTextResponse.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TranslateTextResponse.BuildermergeFrom(com.google.protobuf.Message other)TranslateTextResponse.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TranslateTextResponse.BuilderremoveGlossaryTranslations(int index)Text translation responses if a glossary is provided in the request.TranslateTextResponse.BuilderremoveTranslations(int index)Text translation responses with no glossary applied.TranslateTextResponse.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TranslateTextResponse.BuildersetGlossaryTranslations(int index, Translation value)Text translation responses if a glossary is provided in the request.TranslateTextResponse.BuildersetGlossaryTranslations(int index, Translation.Builder builderForValue)Text translation responses if a glossary is provided in the request.TranslateTextResponse.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)TranslateTextResponse.BuildersetTranslations(int index, Translation value)Text translation responses with no glossary applied.TranslateTextResponse.BuildersetTranslations(int index, Translation.Builder builderForValue)Text translation responses with no glossary applied.TranslateTextResponse.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
-
clear
public TranslateTextResponse.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.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.GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
-
getDefaultInstanceForType
public TranslateTextResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TranslateTextResponse build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TranslateTextResponse buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TranslateTextResponse.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
-
setField
public TranslateTextResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
-
clearField
public TranslateTextResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
-
clearOneof
public TranslateTextResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
-
setRepeatedField
public TranslateTextResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
-
addRepeatedField
public TranslateTextResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
-
mergeFrom
public TranslateTextResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TranslateTextResponse.Builder>
-
mergeFrom
public TranslateTextResponse.Builder mergeFrom(TranslateTextResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
-
mergeFrom
public TranslateTextResponse.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<TranslateTextResponse.Builder>- Throws:
IOException
-
getTranslationsList
public List<Translation> getTranslationsList()
Text translation responses with no glossary applied. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation translations = 1;- Specified by:
getTranslationsListin interfaceTranslateTextResponseOrBuilder
-
getTranslationsCount
public int getTranslationsCount()
Text translation responses with no glossary applied. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation translations = 1;- Specified by:
getTranslationsCountin interfaceTranslateTextResponseOrBuilder
-
getTranslations
public Translation getTranslations(int index)
Text translation responses with no glossary applied. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation translations = 1;- Specified by:
getTranslationsin interfaceTranslateTextResponseOrBuilder
-
setTranslations
public TranslateTextResponse.Builder setTranslations(int index, Translation value)
Text translation responses with no glossary applied. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation translations = 1;
-
setTranslations
public TranslateTextResponse.Builder setTranslations(int index, Translation.Builder builderForValue)
Text translation responses with no glossary applied. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation translations = 1;
-
addTranslations
public TranslateTextResponse.Builder addTranslations(Translation value)
Text translation responses with no glossary applied. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation translations = 1;
-
addTranslations
public TranslateTextResponse.Builder addTranslations(int index, Translation value)
Text translation responses with no glossary applied. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation translations = 1;
-
addTranslations
public TranslateTextResponse.Builder addTranslations(Translation.Builder builderForValue)
Text translation responses with no glossary applied. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation translations = 1;
-
addTranslations
public TranslateTextResponse.Builder addTranslations(int index, Translation.Builder builderForValue)
Text translation responses with no glossary applied. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation translations = 1;
-
addAllTranslations
public TranslateTextResponse.Builder addAllTranslations(Iterable<? extends Translation> values)
Text translation responses with no glossary applied. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation translations = 1;
-
clearTranslations
public TranslateTextResponse.Builder clearTranslations()
Text translation responses with no glossary applied. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation translations = 1;
-
removeTranslations
public TranslateTextResponse.Builder removeTranslations(int index)
Text translation responses with no glossary applied. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation translations = 1;
-
getTranslationsBuilder
public Translation.Builder getTranslationsBuilder(int index)
Text translation responses with no glossary applied. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation translations = 1;
-
getTranslationsOrBuilder
public TranslationOrBuilder getTranslationsOrBuilder(int index)
Text translation responses with no glossary applied. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation translations = 1;- Specified by:
getTranslationsOrBuilderin interfaceTranslateTextResponseOrBuilder
-
getTranslationsOrBuilderList
public List<? extends TranslationOrBuilder> getTranslationsOrBuilderList()
Text translation responses with no glossary applied. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation translations = 1;- Specified by:
getTranslationsOrBuilderListin interfaceTranslateTextResponseOrBuilder
-
addTranslationsBuilder
public Translation.Builder addTranslationsBuilder()
Text translation responses with no glossary applied. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation translations = 1;
-
addTranslationsBuilder
public Translation.Builder addTranslationsBuilder(int index)
Text translation responses with no glossary applied. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation translations = 1;
-
getTranslationsBuilderList
public List<Translation.Builder> getTranslationsBuilderList()
Text translation responses with no glossary applied. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation translations = 1;
-
getGlossaryTranslationsList
public List<Translation> getGlossaryTranslationsList()
Text translation responses if a glossary is provided in the request. This can be the same as [`translations`][google.cloud.translation.v3.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;- Specified by:
getGlossaryTranslationsListin interfaceTranslateTextResponseOrBuilder
-
getGlossaryTranslationsCount
public int getGlossaryTranslationsCount()
Text translation responses if a glossary is provided in the request. This can be the same as [`translations`][google.cloud.translation.v3.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;- Specified by:
getGlossaryTranslationsCountin interfaceTranslateTextResponseOrBuilder
-
getGlossaryTranslations
public Translation getGlossaryTranslations(int index)
Text translation responses if a glossary is provided in the request. This can be the same as [`translations`][google.cloud.translation.v3.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;- Specified by:
getGlossaryTranslationsin interfaceTranslateTextResponseOrBuilder
-
setGlossaryTranslations
public TranslateTextResponse.Builder setGlossaryTranslations(int index, Translation value)
Text translation responses if a glossary is provided in the request. This can be the same as [`translations`][google.cloud.translation.v3.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
-
setGlossaryTranslations
public TranslateTextResponse.Builder setGlossaryTranslations(int index, Translation.Builder builderForValue)
Text translation responses if a glossary is provided in the request. This can be the same as [`translations`][google.cloud.translation.v3.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
-
addGlossaryTranslations
public TranslateTextResponse.Builder addGlossaryTranslations(Translation value)
Text translation responses if a glossary is provided in the request. This can be the same as [`translations`][google.cloud.translation.v3.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
-
addGlossaryTranslations
public TranslateTextResponse.Builder addGlossaryTranslations(int index, Translation value)
Text translation responses if a glossary is provided in the request. This can be the same as [`translations`][google.cloud.translation.v3.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
-
addGlossaryTranslations
public TranslateTextResponse.Builder addGlossaryTranslations(Translation.Builder builderForValue)
Text translation responses if a glossary is provided in the request. This can be the same as [`translations`][google.cloud.translation.v3.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
-
addGlossaryTranslations
public TranslateTextResponse.Builder addGlossaryTranslations(int index, Translation.Builder builderForValue)
Text translation responses if a glossary is provided in the request. This can be the same as [`translations`][google.cloud.translation.v3.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
-
addAllGlossaryTranslations
public TranslateTextResponse.Builder addAllGlossaryTranslations(Iterable<? extends Translation> values)
Text translation responses if a glossary is provided in the request. This can be the same as [`translations`][google.cloud.translation.v3.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
-
clearGlossaryTranslations
public TranslateTextResponse.Builder clearGlossaryTranslations()
Text translation responses if a glossary is provided in the request. This can be the same as [`translations`][google.cloud.translation.v3.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
-
removeGlossaryTranslations
public TranslateTextResponse.Builder removeGlossaryTranslations(int index)
Text translation responses if a glossary is provided in the request. This can be the same as [`translations`][google.cloud.translation.v3.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
-
getGlossaryTranslationsBuilder
public Translation.Builder getGlossaryTranslationsBuilder(int index)
Text translation responses if a glossary is provided in the request. This can be the same as [`translations`][google.cloud.translation.v3.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
-
getGlossaryTranslationsOrBuilder
public TranslationOrBuilder getGlossaryTranslationsOrBuilder(int index)
Text translation responses if a glossary is provided in the request. This can be the same as [`translations`][google.cloud.translation.v3.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;- Specified by:
getGlossaryTranslationsOrBuilderin interfaceTranslateTextResponseOrBuilder
-
getGlossaryTranslationsOrBuilderList
public List<? extends TranslationOrBuilder> getGlossaryTranslationsOrBuilderList()
Text translation responses if a glossary is provided in the request. This can be the same as [`translations`][google.cloud.translation.v3.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;- Specified by:
getGlossaryTranslationsOrBuilderListin interfaceTranslateTextResponseOrBuilder
-
addGlossaryTranslationsBuilder
public Translation.Builder addGlossaryTranslationsBuilder()
Text translation responses if a glossary is provided in the request. This can be the same as [`translations`][google.cloud.translation.v3.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
-
addGlossaryTranslationsBuilder
public Translation.Builder addGlossaryTranslationsBuilder(int index)
Text translation responses if a glossary is provided in the request. This can be the same as [`translations`][google.cloud.translation.v3.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
-
getGlossaryTranslationsBuilderList
public List<Translation.Builder> getGlossaryTranslationsBuilderList()
Text translation responses if a glossary is provided in the request. This can be the same as [`translations`][google.cloud.translation.v3.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
-
setUnknownFields
public final TranslateTextResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
-
mergeUnknownFields
public final TranslateTextResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
-
-