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.Builder
addAllGlossaryTranslations(Iterable<? extends Translation> values)
Text translation responses if a glossary is provided in the request.TranslateTextResponse.Builder
addAllTranslations(Iterable<? extends Translation> values)
Text translation responses with no glossary applied.TranslateTextResponse.Builder
addGlossaryTranslations(int index, Translation value)
Text translation responses if a glossary is provided in the request.TranslateTextResponse.Builder
addGlossaryTranslations(int index, Translation.Builder builderForValue)
Text translation responses if a glossary is provided in the request.TranslateTextResponse.Builder
addGlossaryTranslations(Translation value)
Text translation responses if a glossary is provided in the request.TranslateTextResponse.Builder
addGlossaryTranslations(Translation.Builder builderForValue)
Text translation responses if a glossary is provided in the request.Translation.Builder
addGlossaryTranslationsBuilder()
Text translation responses if a glossary is provided in the request.Translation.Builder
addGlossaryTranslationsBuilder(int index)
Text translation responses if a glossary is provided in the request.TranslateTextResponse.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
TranslateTextResponse.Builder
addTranslations(int index, Translation value)
Text translation responses with no glossary applied.TranslateTextResponse.Builder
addTranslations(int index, Translation.Builder builderForValue)
Text translation responses with no glossary applied.TranslateTextResponse.Builder
addTranslations(Translation value)
Text translation responses with no glossary applied.TranslateTextResponse.Builder
addTranslations(Translation.Builder builderForValue)
Text translation responses with no glossary applied.Translation.Builder
addTranslationsBuilder()
Text translation responses with no glossary applied.Translation.Builder
addTranslationsBuilder(int index)
Text translation responses with no glossary applied.TranslateTextResponse
build()
TranslateTextResponse
buildPartial()
TranslateTextResponse.Builder
clear()
TranslateTextResponse.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
TranslateTextResponse.Builder
clearGlossaryTranslations()
Text translation responses if a glossary is provided in the request.TranslateTextResponse.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
TranslateTextResponse.Builder
clearTranslations()
Text translation responses with no glossary applied.TranslateTextResponse.Builder
clone()
TranslateTextResponse
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Translation
getGlossaryTranslations(int index)
Text translation responses if a glossary is provided in the request.Translation.Builder
getGlossaryTranslationsBuilder(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.int
getGlossaryTranslationsCount()
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.TranslationOrBuilder
getGlossaryTranslationsOrBuilder(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.Translation
getTranslations(int index)
Text translation responses with no glossary applied.Translation.Builder
getTranslationsBuilder(int index)
Text translation responses with no glossary applied.List<Translation.Builder>
getTranslationsBuilderList()
Text translation responses with no glossary applied.int
getTranslationsCount()
Text translation responses with no glossary applied.List<Translation>
getTranslationsList()
Text translation responses with no glossary applied.TranslationOrBuilder
getTranslationsOrBuilder(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.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
TranslateTextResponse.Builder
mergeFrom(TranslateTextResponse other)
TranslateTextResponse.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
TranslateTextResponse.Builder
mergeFrom(com.google.protobuf.Message other)
TranslateTextResponse.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
TranslateTextResponse.Builder
removeGlossaryTranslations(int index)
Text translation responses if a glossary is provided in the request.TranslateTextResponse.Builder
removeTranslations(int index)
Text translation responses with no glossary applied.TranslateTextResponse.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
TranslateTextResponse.Builder
setGlossaryTranslations(int index, Translation value)
Text translation responses if a glossary is provided in the request.TranslateTextResponse.Builder
setGlossaryTranslations(int index, Translation.Builder builderForValue)
Text translation responses if a glossary is provided in the request.TranslateTextResponse.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
TranslateTextResponse.Builder
setTranslations(int index, Translation value)
Text translation responses with no glossary applied.TranslateTextResponse.Builder
setTranslations(int index, Translation.Builder builderForValue)
Text translation responses with no glossary applied.TranslateTextResponse.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
-
clear
public TranslateTextResponse.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
-
getDefaultInstanceForType
public TranslateTextResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public TranslateTextResponse build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TranslateTextResponse buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TranslateTextResponse.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
-
setField
public TranslateTextResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
-
clearField
public TranslateTextResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
-
clearOneof
public TranslateTextResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
-
setRepeatedField
public TranslateTextResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
-
addRepeatedField
public TranslateTextResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
-
mergeFrom
public TranslateTextResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TranslateTextResponse.Builder>
-
mergeFrom
public TranslateTextResponse.Builder mergeFrom(TranslateTextResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getTranslationsList
in 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:
getTranslationsCount
in 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:
getTranslations
in 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:
getTranslationsOrBuilder
in 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:
getTranslationsOrBuilderList
in 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:
getGlossaryTranslationsList
in 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:
getGlossaryTranslationsCount
in 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:
getGlossaryTranslations
in 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:
getGlossaryTranslationsOrBuilder
in 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:
getGlossaryTranslationsOrBuilderList
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
-
mergeUnknownFields
public final TranslateTextResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
-
-