Class AdaptiveMtTranslation.Builder (2.83.0)

public static final class AdaptiveMtTranslation.Builder extends GeneratedMessage.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

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

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.

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 GeneratedMessage.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

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.