Class DocumentTranslation (2.9.0)

Stay organized with collections Save and categorize content based on your preferences.
public final class DocumentTranslation extends GeneratedMessageV3 implements DocumentTranslationOrBuilder

A translated document message.

Protobuf type google.cloud.translation.v3beta1.DocumentTranslation

Static Fields

BYTE_STREAM_OUTPUTS_FIELD_NUMBER

public static final int BYTE_STREAM_OUTPUTS_FIELD_NUMBER
Field Value
TypeDescription
int

DETECTED_LANGUAGE_CODE_FIELD_NUMBER

public static final int DETECTED_LANGUAGE_CODE_FIELD_NUMBER
Field Value
TypeDescription
int

MIME_TYPE_FIELD_NUMBER

public static final int MIME_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DocumentTranslation getDefaultInstance()
Returns
TypeDescription
DocumentTranslation

getDescriptor()

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

newBuilder()

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

newBuilder(DocumentTranslation prototype)

public static DocumentTranslation.Builder newBuilder(DocumentTranslation prototype)
Parameter
NameDescription
prototypeDocumentTranslation
Returns
TypeDescription
DocumentTranslation.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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