- 2.83.0 (latest)
- 2.82.0
- 2.80.0
- 2.78.0
- 2.76.0
- 2.75.0
- 2.74.0
- 2.73.0
- 2.72.0
- 2.70.0
- 2.68.0
- 2.67.0
- 2.64.0
- 2.63.0
- 2.62.0
- 2.60.0
- 2.59.0
- 2.58.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.52.0
- 2.51.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.5
- 2.2.0
- 2.1.13
public static final class AdaptiveMtTranslateResponse.Builder extends GeneratedMessage.Builder<AdaptiveMtTranslateResponse.Builder> implements AdaptiveMtTranslateResponseOrBuilderAn AdaptiveMtTranslate response.
Protobuf type google.cloud.translation.v3.AdaptiveMtTranslateResponse
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AdaptiveMtTranslateResponse.BuilderImplements
AdaptiveMtTranslateResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllGlossaryTranslations(Iterable<? extends AdaptiveMtTranslation> values)
public AdaptiveMtTranslateResponse.Builder addAllGlossaryTranslations(Iterable<? extends AdaptiveMtTranslation> values)Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.translate.v3.AdaptiveMtTranslation> |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateResponse.Builder |
|
addAllTranslations(Iterable<? extends AdaptiveMtTranslation> values)
public AdaptiveMtTranslateResponse.Builder addAllTranslations(Iterable<? extends AdaptiveMtTranslation> values)Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.translate.v3.AdaptiveMtTranslation> |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateResponse.Builder |
|
addGlossaryTranslations(AdaptiveMtTranslation value)
public AdaptiveMtTranslateResponse.Builder addGlossaryTranslations(AdaptiveMtTranslation value)Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
AdaptiveMtTranslation |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateResponse.Builder |
|
addGlossaryTranslations(AdaptiveMtTranslation.Builder builderForValue)
public AdaptiveMtTranslateResponse.Builder addGlossaryTranslations(AdaptiveMtTranslation.Builder builderForValue)Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
AdaptiveMtTranslation.Builder |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateResponse.Builder |
|
addGlossaryTranslations(int index, AdaptiveMtTranslation value)
public AdaptiveMtTranslateResponse.Builder addGlossaryTranslations(int index, AdaptiveMtTranslation value)Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
AdaptiveMtTranslation |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateResponse.Builder |
|
addGlossaryTranslations(int index, AdaptiveMtTranslation.Builder builderForValue)
public AdaptiveMtTranslateResponse.Builder addGlossaryTranslations(int index, AdaptiveMtTranslation.Builder builderForValue)Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
AdaptiveMtTranslation.Builder |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateResponse.Builder |
|
addGlossaryTranslationsBuilder()
public AdaptiveMtTranslation.Builder addGlossaryTranslationsBuilder()Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslation.Builder |
|
addGlossaryTranslationsBuilder(int index)
public AdaptiveMtTranslation.Builder addGlossaryTranslationsBuilder(int index)Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslation.Builder |
|
addTranslations(AdaptiveMtTranslation value)
public AdaptiveMtTranslateResponse.Builder addTranslations(AdaptiveMtTranslation value)Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
AdaptiveMtTranslation |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateResponse.Builder |
|
addTranslations(AdaptiveMtTranslation.Builder builderForValue)
public AdaptiveMtTranslateResponse.Builder addTranslations(AdaptiveMtTranslation.Builder builderForValue)Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
AdaptiveMtTranslation.Builder |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateResponse.Builder |
|
addTranslations(int index, AdaptiveMtTranslation value)
public AdaptiveMtTranslateResponse.Builder addTranslations(int index, AdaptiveMtTranslation value)Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
AdaptiveMtTranslation |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateResponse.Builder |
|
addTranslations(int index, AdaptiveMtTranslation.Builder builderForValue)
public AdaptiveMtTranslateResponse.Builder addTranslations(int index, AdaptiveMtTranslation.Builder builderForValue)Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
AdaptiveMtTranslation.Builder |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateResponse.Builder |
|
addTranslationsBuilder()
public AdaptiveMtTranslation.Builder addTranslationsBuilder()Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslation.Builder |
|
addTranslationsBuilder(int index)
public AdaptiveMtTranslation.Builder addTranslationsBuilder(int index)Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslation.Builder |
|
build()
public AdaptiveMtTranslateResponse build()| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateResponse |
|
buildPartial()
public AdaptiveMtTranslateResponse buildPartial()| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateResponse |
|
clear()
public AdaptiveMtTranslateResponse.Builder clear()| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateResponse.Builder |
|
clearGlossaryTranslations()
public AdaptiveMtTranslateResponse.Builder clearGlossaryTranslations()Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateResponse.Builder |
|
clearLanguageCode()
public AdaptiveMtTranslateResponse.Builder clearLanguageCode()Output only. The translation's language code.
string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateResponse.Builder |
This builder for chaining. |
clearTranslations()
public AdaptiveMtTranslateResponse.Builder clearTranslations()Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateResponse.Builder |
|
getDefaultInstanceForType()
public AdaptiveMtTranslateResponse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateResponse |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getGlossaryTranslations(int index)
public AdaptiveMtTranslation getGlossaryTranslations(int index)Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslation |
|
getGlossaryTranslationsBuilder(int index)
public AdaptiveMtTranslation.Builder getGlossaryTranslationsBuilder(int index)Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslation.Builder |
|
getGlossaryTranslationsBuilderList()
public List<AdaptiveMtTranslation.Builder> getGlossaryTranslationsBuilderList()Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getGlossaryTranslationsCount()
public int getGlossaryTranslationsCount()Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
| Returns | |
|---|---|
| Type | Description |
int |
|
getGlossaryTranslationsList()
public List<AdaptiveMtTranslation> getGlossaryTranslationsList()Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
| Returns | |
|---|---|
| Type | Description |
List<AdaptiveMtTranslation> |
|
getGlossaryTranslationsOrBuilder(int index)
public AdaptiveMtTranslationOrBuilder getGlossaryTranslationsOrBuilder(int index)Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslationOrBuilder |
|
getGlossaryTranslationsOrBuilderList()
public List<? extends AdaptiveMtTranslationOrBuilder> getGlossaryTranslationsOrBuilderList()Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.translate.v3.AdaptiveMtTranslationOrBuilder> |
|
getLanguageCode()
public String getLanguageCode()Output only. The translation's language code.
string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The languageCode. |
getLanguageCodeBytes()
public ByteString getLanguageCodeBytes()Output only. The translation's language code.
string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for languageCode. |
getTranslations(int index)
public AdaptiveMtTranslation getTranslations(int index)Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslation |
|
getTranslationsBuilder(int index)
public AdaptiveMtTranslation.Builder getTranslationsBuilder(int index)Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslation.Builder |
|
getTranslationsBuilderList()
public List<AdaptiveMtTranslation.Builder> getTranslationsBuilderList()Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getTranslationsCount()
public int getTranslationsCount()Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
|
getTranslationsList()
public List<AdaptiveMtTranslation> getTranslationsList()Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
List<AdaptiveMtTranslation> |
|
getTranslationsOrBuilder(int index)
public AdaptiveMtTranslationOrBuilder getTranslationsOrBuilder(int index)Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslationOrBuilder |
|
getTranslationsOrBuilderList()
public List<? extends AdaptiveMtTranslationOrBuilder> getTranslationsOrBuilderList()Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.translate.v3.AdaptiveMtTranslationOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AdaptiveMtTranslateResponse other)
public AdaptiveMtTranslateResponse.Builder mergeFrom(AdaptiveMtTranslateResponse other)| Parameter | |
|---|---|
| Name | Description |
other |
AdaptiveMtTranslateResponse |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateResponse.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AdaptiveMtTranslateResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateResponse.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AdaptiveMtTranslateResponse.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateResponse.Builder |
|
removeGlossaryTranslations(int index)
public AdaptiveMtTranslateResponse.Builder removeGlossaryTranslations(int index)Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateResponse.Builder |
|
removeTranslations(int index)
public AdaptiveMtTranslateResponse.Builder removeTranslations(int index)Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateResponse.Builder |
|
setGlossaryTranslations(int index, AdaptiveMtTranslation value)
public AdaptiveMtTranslateResponse.Builder setGlossaryTranslations(int index, AdaptiveMtTranslation value)Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
AdaptiveMtTranslation |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateResponse.Builder |
|
setGlossaryTranslations(int index, AdaptiveMtTranslation.Builder builderForValue)
public AdaptiveMtTranslateResponse.Builder setGlossaryTranslations(int index, AdaptiveMtTranslation.Builder builderForValue)Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
AdaptiveMtTranslation.Builder |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateResponse.Builder |
|
setLanguageCode(String value)
public AdaptiveMtTranslateResponse.Builder setLanguageCode(String value)Output only. The translation's language code.
string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe languageCode to set. |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateResponse.Builder |
This builder for chaining. |
setLanguageCodeBytes(ByteString value)
public AdaptiveMtTranslateResponse.Builder setLanguageCodeBytes(ByteString value)Output only. The translation's language code.
string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for languageCode to set. |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateResponse.Builder |
This builder for chaining. |
setTranslations(int index, AdaptiveMtTranslation value)
public AdaptiveMtTranslateResponse.Builder setTranslations(int index, AdaptiveMtTranslation value)Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
AdaptiveMtTranslation |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateResponse.Builder |
|
setTranslations(int index, AdaptiveMtTranslation.Builder builderForValue)
public AdaptiveMtTranslateResponse.Builder setTranslations(int index, AdaptiveMtTranslation.Builder builderForValue)Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
AdaptiveMtTranslation.Builder |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateResponse.Builder |
|