public static final class TranslateTextResponse.Builder extends GeneratedMessageV3.Builder<TranslateTextResponse.Builder> implements TranslateTextResponseOrBuilder
Protobuf type google.cloud.translation.v3.TranslateTextResponse
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TranslateTextResponse.BuilderImplements
TranslateTextResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
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 | |
---|---|
Type | Description |
TranslateTextResponse.Builder |
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 | |
---|---|
Type | Description |
TranslateTextResponse.Builder |
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 | |
---|---|
Name | Description |
value | Translation |
Returns | |
---|---|
Type | Description |
TranslateTextResponse.Builder |
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 | |
---|---|
Name | Description |
builderForValue | Translation.Builder |
Returns | |
---|---|
Type | Description |
TranslateTextResponse.Builder |
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 | |
---|---|
Name | Description |
index | int |
value | Translation |
Returns | |
---|---|
Type | Description |
TranslateTextResponse.Builder |
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 | |
---|---|
Name | Description |
index | int |
builderForValue | Translation.Builder |
Returns | |
---|---|
Type | Description |
TranslateTextResponse.Builder |
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 | |
---|---|
Type | Description |
Translation.Builder |
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 | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
Translation.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TranslateTextResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
TranslateTextResponse.Builder |
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 | |
---|---|
Name | Description |
value | Translation |
Returns | |
---|---|
Type | Description |
TranslateTextResponse.Builder |
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