Class AdaptiveMtTranslation.Builder (2.44.0)

public static final class AdaptiveMtTranslation.Builder extends GeneratedMessageV3.Builder<AdaptiveMtTranslation.Builder> implements AdaptiveMtTranslationOrBuilder

An AdaptiveMt translation.

Protobuf type google.cloud.translation.v3.AdaptiveMtTranslation

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AdaptiveMtTranslation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AdaptiveMtTranslation.Builder
Overrides

build()

public AdaptiveMtTranslation build()
Returns
Type Description
AdaptiveMtTranslation

buildPartial()

public AdaptiveMtTranslation buildPartial()
Returns
Type Description
AdaptiveMtTranslation

clear()

public AdaptiveMtTranslation.Builder clear()
Returns
Type Description
AdaptiveMtTranslation.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AdaptiveMtTranslation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AdaptiveMtTranslation.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AdaptiveMtTranslation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AdaptiveMtTranslation.Builder
Overrides

clearTranslatedText()

public AdaptiveMtTranslation.Builder clearTranslatedText()

Output only. The translated text.

string translated_text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AdaptiveMtTranslation.Builder

This builder for chaining.

clone()

public AdaptiveMtTranslation.Builder clone()
Returns
Type Description
AdaptiveMtTranslation.Builder
Overrides

getDefaultInstanceForType()

public AdaptiveMtTranslation getDefaultInstanceForType()
Returns
Type Description
AdaptiveMtTranslation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getTranslatedText()

public String getTranslatedText()

Output only. The translated text.

string translated_text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The translatedText.

getTranslatedTextBytes()

public ByteString getTranslatedTextBytes()

Output only. The translated text.

string translated_text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for translatedText.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AdaptiveMtTranslation other)

public AdaptiveMtTranslation.Builder mergeFrom(AdaptiveMtTranslation other)
Parameter
Name Description
other AdaptiveMtTranslation
Returns
Type Description
AdaptiveMtTranslation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AdaptiveMtTranslation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdaptiveMtTranslation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AdaptiveMtTranslation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AdaptiveMtTranslation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AdaptiveMtTranslation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AdaptiveMtTranslation.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AdaptiveMtTranslation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AdaptiveMtTranslation.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AdaptiveMtTranslation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AdaptiveMtTranslation.Builder
Overrides

setTranslatedText(String value)

public AdaptiveMtTranslation.Builder setTranslatedText(String value)

Output only. The translated text.

string translated_text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The translatedText to set.

Returns
Type Description
AdaptiveMtTranslation.Builder

This builder for chaining.

setTranslatedTextBytes(ByteString value)

public AdaptiveMtTranslation.Builder setTranslatedTextBytes(ByteString value)

Output only. The translated text.

string translated_text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for translatedText to set.

Returns
Type Description
AdaptiveMtTranslation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AdaptiveMtTranslation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AdaptiveMtTranslation.Builder
Overrides