public static final class TranslateTextResponse.Builder extends GeneratedMessageV3.Builder<TranslateTextResponse.Builder> implements TranslateTextResponseOrBuilder
Protobuf type google.cloud.translation.v3beta1.TranslateTextResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
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.v3beta1.Translation glossary_translations = 3;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.translate.v3beta1.Translation>
|
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.v3beta1.Translation translations = 1;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.translate.v3beta1.Translation>
|
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.v3beta1.Translation glossary_translations = 3;
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.v3beta1.Translation glossary_translations = 3;
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.v3beta1.Translation glossary_translations = 3;
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.v3beta1.Translation glossary_translations = 3;
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.v3beta1.Translation glossary_translations = 3;
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.v3beta1.Translation glossary_translations = 3;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TranslateTextResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
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.v3beta1.Translation translations = 1;
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.v3beta1.Translation translations = 1;
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.v3beta1.Translation translations = 1;
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.v3beta1.Translation translations = 1;
addTranslationsBuilder()
public Translation.Builder addTranslationsBuilder()
Text translation responses with no glossary applied.
This field has the same length as
contents
.
repeated .google.cloud.translation.v3beta1.Translation translations = 1;
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.v3beta1.Translation translations = 1;
Parameter |
Name |
Description |
index |
int
|
build()
public TranslateTextResponse build()
buildPartial()
public TranslateTextResponse buildPartial()
clear()
public TranslateTextResponse.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public TranslateTextResponse.Builder clearField(Descriptors.FieldDescriptor field)
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.v3beta1.Translation glossary_translations = 3;
clearOneof(Descriptors.OneofDescriptor oneof)
public TranslateTextResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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.v3beta1.Translation translations = 1;
clone()
public TranslateTextResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public TranslateTextResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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.v3beta1.Translation glossary_translations = 3;
Parameter |
Name |
Description |
index |
int
|
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.v3beta1.Translation glossary_translations = 3;
Parameter |
Name |
Description |
index |
int
|
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.v3beta1.Translation glossary_translations = 3;
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.v3beta1.Translation glossary_translations = 3;
Returns |
Type |
Description |
int |
|
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.v3beta1.Translation glossary_translations = 3;
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.v3beta1.Translation glossary_translations = 3;
Parameter |
Name |
Description |
index |
int
|
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.v3beta1.Translation glossary_translations = 3;
Returns |
Type |
Description |
List<? extends com.google.cloud.translate.v3beta1.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.v3beta1.Translation translations = 1;
Parameter |
Name |
Description |
index |
int
|
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.v3beta1.Translation translations = 1;
Parameter |
Name |
Description |
index |
int
|
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.v3beta1.Translation translations = 1;
getTranslationsCount()
public int getTranslationsCount()
Text translation responses with no glossary applied.
This field has the same length as
contents
.
repeated .google.cloud.translation.v3beta1.Translation translations = 1;
Returns |
Type |
Description |
int |
|
getTranslationsList()
public List<Translation> getTranslationsList()
Text translation responses with no glossary applied.
This field has the same length as
contents
.
repeated .google.cloud.translation.v3beta1.Translation translations = 1;
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.v3beta1.Translation translations = 1;
Parameter |
Name |
Description |
index |
int
|
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.v3beta1.Translation translations = 1;
Returns |
Type |
Description |
List<? extends com.google.cloud.translate.v3beta1.TranslationOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(TranslateTextResponse other)
public TranslateTextResponse.Builder mergeFrom(TranslateTextResponse other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TranslateTextResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public TranslateTextResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TranslateTextResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.v3beta1.Translation glossary_translations = 3;
Parameter |
Name |
Description |
index |
int
|
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.v3beta1.Translation translations = 1;
Parameter |
Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public TranslateTextResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.v3beta1.Translation glossary_translations = 3;
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.v3beta1.Translation glossary_translations = 3;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TranslateTextResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.v3beta1.Translation translations = 1;
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.v3beta1.Translation translations = 1;
setUnknownFields(UnknownFieldSet unknownFields)
public final TranslateTextResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides