public static final class AdaptiveMtTranslateResponse.Builder extends GeneratedMessageV3.Builder<AdaptiveMtTranslateResponse.Builder> implements AdaptiveMtTranslateResponseOrBuilder
An AdaptiveMtTranslate response.
Protobuf type google.cloud.translation.v3.AdaptiveMtTranslateResponse
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 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>
|
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>
|
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;
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;
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;
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;
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;
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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AdaptiveMtTranslateResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
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];
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];
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];
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];
addTranslationsBuilder()
public AdaptiveMtTranslation.Builder addTranslationsBuilder()
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
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
|
build()
public AdaptiveMtTranslateResponse build()
buildPartial()
public AdaptiveMtTranslateResponse buildPartial()
clear()
public AdaptiveMtTranslateResponse.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public AdaptiveMtTranslateResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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;
clearLanguageCode()
public AdaptiveMtTranslateResponse.Builder clearLanguageCode()
Output only. The translation's language code.
string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
clearOneof(Descriptors.OneofDescriptor oneof)
public AdaptiveMtTranslateResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearTranslations()
public AdaptiveMtTranslateResponse.Builder clearTranslations()
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
clone()
public AdaptiveMtTranslateResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public AdaptiveMtTranslateResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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
|
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
|
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;
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;
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
|
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
|
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
|
getTranslationsBuilderList()
public List<AdaptiveMtTranslation.Builder> getTranslationsBuilderList()
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
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];
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
|
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AdaptiveMtTranslateResponse other)
public AdaptiveMtTranslateResponse.Builder mergeFrom(AdaptiveMtTranslateResponse other)
public AdaptiveMtTranslateResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AdaptiveMtTranslateResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AdaptiveMtTranslateResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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
|
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public AdaptiveMtTranslateResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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;
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;
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 |
String
The languageCode to set.
|
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 |
ByteString
The bytes for languageCode to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AdaptiveMtTranslateResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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];
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];
setUnknownFields(UnknownFieldSet unknownFields)
public final AdaptiveMtTranslateResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides