Class AdaptiveMtTranslation.Builder (2.40.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AdaptiveMtTranslation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AdaptiveMtTranslation.Builder
Overrides

build()

public AdaptiveMtTranslation build()
Returns
TypeDescription
AdaptiveMtTranslation

buildPartial()

public AdaptiveMtTranslation buildPartial()
Returns
TypeDescription
AdaptiveMtTranslation

clear()

public AdaptiveMtTranslation.Builder clear()
Returns
TypeDescription
AdaptiveMtTranslation.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AdaptiveMtTranslation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AdaptiveMtTranslation.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AdaptiveMtTranslation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AdaptiveMtTranslation.Builder
Overrides

clearTranslatedText()

public AdaptiveMtTranslation.Builder clearTranslatedText()

Output only. The translated text.

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

Returns
TypeDescription
AdaptiveMtTranslation.Builder

This builder for chaining.

clone()

public AdaptiveMtTranslation.Builder clone()
Returns
TypeDescription
AdaptiveMtTranslation.Builder
Overrides

getDefaultInstanceForType()

public AdaptiveMtTranslation getDefaultInstanceForType()
Returns
TypeDescription
AdaptiveMtTranslation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getTranslatedText()

public String getTranslatedText()

Output only. The translated text.

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

Returns
TypeDescription
String

The translatedText.

getTranslatedTextBytes()

public ByteString getTranslatedTextBytes()

Output only. The translated text.

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

Returns
TypeDescription
ByteString

The bytes for translatedText.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AdaptiveMtTranslation other)

public AdaptiveMtTranslation.Builder mergeFrom(AdaptiveMtTranslation other)
Parameter
NameDescription
otherAdaptiveMtTranslation
Returns
TypeDescription
AdaptiveMtTranslation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AdaptiveMtTranslation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AdaptiveMtTranslation.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AdaptiveMtTranslation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AdaptiveMtTranslation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AdaptiveMtTranslation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AdaptiveMtTranslation.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AdaptiveMtTranslation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AdaptiveMtTranslation.Builder
Overrides

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

public AdaptiveMtTranslation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The translatedText to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for translatedText to set.

Returns
TypeDescription
AdaptiveMtTranslation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AdaptiveMtTranslation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AdaptiveMtTranslation.Builder
Overrides