Class AdaptiveMtTranslation (2.39.0)

public final class AdaptiveMtTranslation extends GeneratedMessageV3 implements AdaptiveMtTranslationOrBuilder

An AdaptiveMt translation.

Protobuf type google.cloud.translation.v3.AdaptiveMtTranslation

Static Fields

TRANSLATED_TEXT_FIELD_NUMBER

public static final int TRANSLATED_TEXT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AdaptiveMtTranslation getDefaultInstance()
Returns
TypeDescription
AdaptiveMtTranslation

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static AdaptiveMtTranslation.Builder newBuilder()
Returns
TypeDescription
AdaptiveMtTranslation.Builder

newBuilder(AdaptiveMtTranslation prototype)

public static AdaptiveMtTranslation.Builder newBuilder(AdaptiveMtTranslation prototype)
Parameter
NameDescription
prototypeAdaptiveMtTranslation
Returns
TypeDescription
AdaptiveMtTranslation.Builder

parseDelimitedFrom(InputStream input)

public static AdaptiveMtTranslation parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AdaptiveMtTranslation
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AdaptiveMtTranslation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AdaptiveMtTranslation
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AdaptiveMtTranslation parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AdaptiveMtTranslation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AdaptiveMtTranslation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AdaptiveMtTranslation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AdaptiveMtTranslation parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AdaptiveMtTranslation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AdaptiveMtTranslation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AdaptiveMtTranslation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AdaptiveMtTranslation parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AdaptiveMtTranslation
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AdaptiveMtTranslation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AdaptiveMtTranslation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AdaptiveMtTranslation parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AdaptiveMtTranslation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AdaptiveMtTranslation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AdaptiveMtTranslation
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AdaptiveMtTranslation parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AdaptiveMtTranslation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AdaptiveMtTranslation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AdaptiveMtTranslation
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AdaptiveMtTranslation> parser()
Returns
TypeDescription
Parser<AdaptiveMtTranslation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public AdaptiveMtTranslation getDefaultInstanceForType()
Returns
TypeDescription
AdaptiveMtTranslation

getParserForType()

public Parser<AdaptiveMtTranslation> getParserForType()
Returns
TypeDescription
Parser<AdaptiveMtTranslation>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AdaptiveMtTranslation.Builder newBuilderForType()
Returns
TypeDescription
AdaptiveMtTranslation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AdaptiveMtTranslation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AdaptiveMtTranslation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AdaptiveMtTranslation.Builder toBuilder()
Returns
TypeDescription
AdaptiveMtTranslation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException