public static final class TranslateTextResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.Builder> implements TranslateTextResponseOrBuilder
google.cloud.translation.v3.TranslateTextResponse| Modifier and Type | Method and 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.Builder builderForValue)
Text translation responses if a glossary is provided in the request.
|
TranslateTextResponse.Builder |
addGlossaryTranslations(int index,
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.
|
TranslateTextResponse.Builder |
addGlossaryTranslations(Translation value)
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.Builder builderForValue)
Text translation responses with no glossary applied.
|
TranslateTextResponse.Builder |
addTranslations(int index,
Translation value)
Text translation responses with no glossary applied.
|
TranslateTextResponse.Builder |
addTranslations(Translation.Builder builderForValue)
Text translation responses with no glossary applied.
|
TranslateTextResponse.Builder |
addTranslations(Translation value)
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(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TranslateTextResponse.Builder |
mergeFrom(com.google.protobuf.Message other) |
TranslateTextResponse.Builder |
mergeFrom(TranslateTextResponse 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.Builder builderForValue)
Text translation responses if a glossary is provided in the request.
|
TranslateTextResponse.Builder |
setGlossaryTranslations(int index,
Translation value)
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.Builder builderForValue)
Text translation responses with no glossary applied.
|
TranslateTextResponse.Builder |
setTranslations(int index,
Translation value)
Text translation responses with no glossary applied.
|
TranslateTextResponse.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, 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<TranslateTextResponse.Builder>public TranslateTextResponse.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.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<TranslateTextResponse.Builder>public TranslateTextResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TranslateTextResponse build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TranslateTextResponse buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TranslateTextResponse.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.Builder>public TranslateTextResponse.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<TranslateTextResponse.Builder>public TranslateTextResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.Builder>public TranslateTextResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.Builder>public TranslateTextResponse.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<TranslateTextResponse.Builder>public TranslateTextResponse.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<TranslateTextResponse.Builder>public TranslateTextResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TranslateTextResponse.Builder>public TranslateTextResponse.Builder mergeFrom(TranslateTextResponse other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.Builder>public TranslateTextResponse.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<TranslateTextResponse.Builder>IOExceptionpublic 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;getTranslationsList in interface TranslateTextResponseOrBuilderpublic 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;getTranslationsCount in interface TranslateTextResponseOrBuilderpublic 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;getTranslations in interface TranslateTextResponseOrBuilderpublic 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;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;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;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;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;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;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;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;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;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;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;getTranslationsOrBuilder in interface TranslateTextResponseOrBuilderpublic 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;getTranslationsOrBuilderList in interface TranslateTextResponseOrBuilderpublic 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;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;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;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;getGlossaryTranslationsList in interface TranslateTextResponseOrBuilderpublic 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;getGlossaryTranslationsCount in interface TranslateTextResponseOrBuilderpublic 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;getGlossaryTranslations in interface TranslateTextResponseOrBuilderpublic 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;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;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;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;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;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;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;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;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;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;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;getGlossaryTranslationsOrBuilder in interface TranslateTextResponseOrBuilderpublic 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;getGlossaryTranslationsOrBuilderList in interface TranslateTextResponseOrBuilderpublic 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;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;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;public final TranslateTextResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.Builder>public final TranslateTextResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TranslateTextResponse.Builder>Copyright © 2022 Google LLC. All rights reserved.