public static final class TranslateTextResponse.Builder extends GeneratedMessageV3.Builder<TranslateTextResponse.Builder> implements TranslateTextResponseOrBuilder
google.cloud.translation.v3beta1.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(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(Descriptors.FieldDescriptor field) |
TranslateTextResponse.Builder |
clearGlossaryTranslations()
Text translation responses if a glossary is provided in the request.
|
TranslateTextResponse.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
TranslateTextResponse.Builder |
clearTranslations()
Text translation responses with no glossary applied.
|
TranslateTextResponse.Builder |
clone() |
TranslateTextResponse |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
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 GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TranslateTextResponse.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
TranslateTextResponse.Builder |
mergeFrom(Message other) |
TranslateTextResponse.Builder |
mergeFrom(TranslateTextResponse other) |
TranslateTextResponse.Builder |
mergeUnknownFields(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(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(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(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
public TranslateTextResponse.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
public TranslateTextResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public TranslateTextResponse build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public TranslateTextResponse buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public TranslateTextResponse.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
public TranslateTextResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
public TranslateTextResponse.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
public TranslateTextResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
public TranslateTextResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
public TranslateTextResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
public TranslateTextResponse.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<TranslateTextResponse.Builder>
public TranslateTextResponse.Builder mergeFrom(TranslateTextResponse other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
public TranslateTextResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<TranslateTextResponse.Builder>
IOException
public List<Translation> getTranslationsList()
Text translation responses with no glossary applied. This field has the same length as [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.Translation translations = 1;
getTranslationsList
in interface TranslateTextResponseOrBuilder
public int getTranslationsCount()
Text translation responses with no glossary applied. This field has the same length as [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.Translation translations = 1;
getTranslationsCount
in interface TranslateTextResponseOrBuilder
public Translation getTranslations(int index)
Text translation responses with no glossary applied. This field has the same length as [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.Translation translations = 1;
getTranslations
in interface TranslateTextResponseOrBuilder
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.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.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.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.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.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.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.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.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.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.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.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.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.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.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.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.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.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.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.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.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.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.Translation translations = 1;
getTranslationsOrBuilder
in interface TranslateTextResponseOrBuilder
public List<? extends TranslationOrBuilder> getTranslationsOrBuilderList()
Text translation responses with no glossary applied. This field has the same length as [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.Translation translations = 1;
getTranslationsOrBuilderList
in interface TranslateTextResponseOrBuilder
public Translation.Builder addTranslationsBuilder()
Text translation responses with no glossary applied. This field has the same length as [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.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.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.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.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.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.v3beta1.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
getGlossaryTranslationsList
in interface TranslateTextResponseOrBuilder
public int getGlossaryTranslationsCount()
Text translation responses if a glossary is provided in the request. This can be the same as [`translations`][google.cloud.translation.v3beta1.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
getGlossaryTranslationsCount
in interface TranslateTextResponseOrBuilder
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.v3beta1.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
getGlossaryTranslations
in interface TranslateTextResponseOrBuilder
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.v3beta1.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.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.v3beta1.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.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.v3beta1.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.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.v3beta1.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.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.v3beta1.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.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.v3beta1.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.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.v3beta1.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.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.v3beta1.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.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.v3beta1.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.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.v3beta1.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.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.v3beta1.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
getGlossaryTranslationsOrBuilder
in interface TranslateTextResponseOrBuilder
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.v3beta1.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
getGlossaryTranslationsOrBuilderList
in interface TranslateTextResponseOrBuilder
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.v3beta1.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.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.v3beta1.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.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.v3beta1.TranslateTextResponse.translations] if no terms apply. This field has the same length as [`contents`][google.cloud.translation.v3beta1.TranslateTextRequest.contents].
repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
public final TranslateTextResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
public final TranslateTextResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<TranslateTextResponse.Builder>
Copyright © 2022 Google LLC. All rights reserved.