Class AdaptiveMtTranslateResponse (2.40.0)

public final class AdaptiveMtTranslateResponse extends GeneratedMessageV3 implements AdaptiveMtTranslateResponseOrBuilder

An AdaptiveMtTranslate response.

Protobuf type google.cloud.translation.v3.AdaptiveMtTranslateResponse

Static Fields

LANGUAGE_CODE_FIELD_NUMBER

public static final int LANGUAGE_CODE_FIELD_NUMBER
Field Value
TypeDescription
int

TRANSLATIONS_FIELD_NUMBER

public static final int TRANSLATIONS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AdaptiveMtTranslateResponse getDefaultInstance()
Returns
TypeDescription
AdaptiveMtTranslateResponse

getDescriptor()

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

newBuilder()

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

newBuilder(AdaptiveMtTranslateResponse prototype)

public static AdaptiveMtTranslateResponse.Builder newBuilder(AdaptiveMtTranslateResponse prototype)
Parameter
NameDescription
prototypeAdaptiveMtTranslateResponse
Returns
TypeDescription
AdaptiveMtTranslateResponse.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public AdaptiveMtTranslateResponse getDefaultInstanceForType()
Returns
TypeDescription
AdaptiveMtTranslateResponse

getLanguageCode()

public String getLanguageCode()

Output only. The translation's language code.

string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for languageCode.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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
NameDescription
indexint
Returns
TypeDescription
AdaptiveMtTranslation

getTranslationsCount()

public int getTranslationsCount()

Output only. The translation.

repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

getTranslationsList()

public List<AdaptiveMtTranslation> getTranslationsList()

Output only. The translation.

repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<AdaptiveMtTranslation>

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
NameDescription
indexint
Returns
TypeDescription
AdaptiveMtTranslationOrBuilder

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
TypeDescription
List<? extends com.google.cloud.translate.v3.AdaptiveMtTranslationOrBuilder>

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 AdaptiveMtTranslateResponse.Builder newBuilderForType()
Returns
TypeDescription
AdaptiveMtTranslateResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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