public static final class TranslateTextResponse.Builder extends GeneratedMessageV3.Builder<TranslateTextResponse.Builder> implements TranslateTextResponseOrBuilder
Protobuf type google.cloud.translation.v3.TranslateTextResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllGlossaryTranslations(Iterable<? extends Translation> values)
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
if no terms apply. This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.translate.v3.Translation>
|
Returns
addAllTranslations(Iterable<? extends Translation> values)
public TranslateTextResponse.Builder addAllTranslations(Iterable<? extends Translation> values)
Text translation responses with no glossary applied.
This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation translations = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.translate.v3.Translation>
|
Returns
addGlossaryTranslations(Translation value)
public TranslateTextResponse.Builder addGlossaryTranslations(Translation value)
Text translation responses if a glossary is provided in the request.
This can be the same as
translations
if no terms apply. This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
Parameter
Returns
addGlossaryTranslations(Translation.Builder builderForValue)
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
if no terms apply. This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
Parameter
Returns
addGlossaryTranslations(int index, Translation value)
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
if no terms apply. This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
Parameters
Returns
addGlossaryTranslations(int index, Translation.Builder builderForValue)
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
if no terms apply. This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
Parameters
Returns
addGlossaryTranslationsBuilder()
public Translation.Builder addGlossaryTranslationsBuilder()
Text translation responses if a glossary is provided in the request.
This can be the same as
translations
if no terms apply. This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
Returns
addGlossaryTranslationsBuilder(int index)
public Translation.Builder addGlossaryTranslationsBuilder(int index)
Text translation responses if a glossary is provided in the request.
This can be the same as
translations
if no terms apply. This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TranslateTextResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
addTranslations(Translation value)
public TranslateTextResponse.Builder addTranslations(Translation value)
Text translation responses with no glossary applied.
This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation translations = 1;
Parameter
Returns
addTranslations(Translation.Builder builderForValue)
public TranslateTextResponse.Builder addTranslations(Translation.Builder builderForValue)
Text translation responses with no glossary applied.
This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation translations = 1;
Parameter
Returns
addTranslations(int index, Translation value)
public TranslateTextResponse.Builder addTranslations(int index, Translation value)
Text translation responses with no glossary applied.
This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation translations = 1;
Parameters
Returns
addTranslations(int index, Translation.Builder builderForValue)
public TranslateTextResponse.Builder addTranslations(int index, Translation.Builder builderForValue)
Text translation responses with no glossary applied.
This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation translations = 1;
Parameters
Returns
addTranslationsBuilder()
public Translation.Builder addTranslationsBuilder()
Text translation responses with no glossary applied.
This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation translations = 1;
Returns
addTranslationsBuilder(int index)
public Translation.Builder addTranslationsBuilder(int index)
Text translation responses with no glossary applied.
This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation translations = 1;
Parameter
Returns
build()
public TranslateTextResponse build()
Returns
buildPartial()
public TranslateTextResponse buildPartial()
Returns
clear()
public TranslateTextResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public TranslateTextResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearGlossaryTranslations()
public TranslateTextResponse.Builder clearGlossaryTranslations()
Text translation responses if a glossary is provided in the request.
This can be the same as
translations
if no terms apply. This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public TranslateTextResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearTranslations()
public TranslateTextResponse.Builder clearTranslations()
Text translation responses with no glossary applied.
This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation translations = 1;
Returns
clone()
public TranslateTextResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public TranslateTextResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getGlossaryTranslations(int index)
public Translation getGlossaryTranslations(int index)
Text translation responses if a glossary is provided in the request.
This can be the same as
translations
if no terms apply. This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
Parameter
Returns
getGlossaryTranslationsBuilder(int index)
public Translation.Builder getGlossaryTranslationsBuilder(int index)
Text translation responses if a glossary is provided in the request.
This can be the same as
translations
if no terms apply. This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
Parameter
Returns
getGlossaryTranslationsBuilderList()
public List<Translation.Builder> getGlossaryTranslationsBuilderList()
Text translation responses if a glossary is provided in the request.
This can be the same as
translations
if no terms apply. This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
Returns
getGlossaryTranslationsCount()
public int getGlossaryTranslationsCount()
Text translation responses if a glossary is provided in the request.
This can be the same as
translations
if no terms apply. This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
Returns
getGlossaryTranslationsList()
public List<Translation> getGlossaryTranslationsList()
Text translation responses if a glossary is provided in the request.
This can be the same as
translations
if no terms apply. This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
Returns
getGlossaryTranslationsOrBuilder(int index)
public TranslationOrBuilder getGlossaryTranslationsOrBuilder(int index)
Text translation responses if a glossary is provided in the request.
This can be the same as
translations
if no terms apply. This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
Parameter
Returns
getGlossaryTranslationsOrBuilderList()
public List<? extends TranslationOrBuilder> getGlossaryTranslationsOrBuilderList()
Text translation responses if a glossary is provided in the request.
This can be the same as
translations
if no terms apply. This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
Returns
Type | Description |
List<? extends com.google.cloud.translate.v3.TranslationOrBuilder> | |
getTranslations(int index)
public Translation getTranslations(int index)
Text translation responses with no glossary applied.
This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation translations = 1;
Parameter
Returns
getTranslationsBuilder(int index)
public Translation.Builder getTranslationsBuilder(int index)
Text translation responses with no glossary applied.
This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation translations = 1;
Parameter
Returns
getTranslationsBuilderList()
public List<Translation.Builder> getTranslationsBuilderList()
Text translation responses with no glossary applied.
This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation translations = 1;
Returns
getTranslationsCount()
public int getTranslationsCount()
Text translation responses with no glossary applied.
This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation translations = 1;
Returns
getTranslationsList()
public List<Translation> getTranslationsList()
Text translation responses with no glossary applied.
This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation translations = 1;
Returns
getTranslationsOrBuilder(int index)
public TranslationOrBuilder getTranslationsOrBuilder(int index)
Text translation responses with no glossary applied.
This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation translations = 1;
Parameter
Returns
getTranslationsOrBuilderList()
public List<? extends TranslationOrBuilder> getTranslationsOrBuilderList()
Text translation responses with no glossary applied.
This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation translations = 1;
Returns
Type | Description |
List<? extends com.google.cloud.translate.v3.TranslationOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(TranslateTextResponse other)
public TranslateTextResponse.Builder mergeFrom(TranslateTextResponse other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TranslateTextResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public TranslateTextResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TranslateTextResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeGlossaryTranslations(int index)
public TranslateTextResponse.Builder removeGlossaryTranslations(int index)
Text translation responses if a glossary is provided in the request.
This can be the same as
translations
if no terms apply. This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
Parameter
Returns
removeTranslations(int index)
public TranslateTextResponse.Builder removeTranslations(int index)
Text translation responses with no glossary applied.
This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation translations = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public TranslateTextResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setGlossaryTranslations(int index, Translation value)
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
if no terms apply. This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
Parameters
Returns
setGlossaryTranslations(int index, Translation.Builder builderForValue)
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
if no terms apply. This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TranslateTextResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setTranslations(int index, Translation value)
public TranslateTextResponse.Builder setTranslations(int index, Translation value)
Text translation responses with no glossary applied.
This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation translations = 1;
Parameters
Returns
setTranslations(int index, Translation.Builder builderForValue)
public TranslateTextResponse.Builder setTranslations(int index, Translation.Builder builderForValue)
Text translation responses with no glossary applied.
This field has the same length as
contents
.
repeated .google.cloud.translation.v3.Translation translations = 1;
Parameters
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final TranslateTextResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides