Class TranslateDocumentResponse (2.9.0)

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

A translated document response message.

Protobuf type google.cloud.translation.v3.TranslateDocumentResponse

Static Fields

DOCUMENT_TRANSLATION_FIELD_NUMBER

public static final int DOCUMENT_TRANSLATION_FIELD_NUMBER
Field Value
TypeDescription
int

GLOSSARY_CONFIG_FIELD_NUMBER

public static final int GLOSSARY_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

GLOSSARY_DOCUMENT_TRANSLATION_FIELD_NUMBER

public static final int GLOSSARY_DOCUMENT_TRANSLATION_FIELD_NUMBER
Field Value
TypeDescription
int

MODEL_FIELD_NUMBER

public static final int MODEL_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TranslateDocumentResponse getDefaultInstance()
Returns
TypeDescription
TranslateDocumentResponse

getDescriptor()

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

newBuilder()

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

newBuilder(TranslateDocumentResponse prototype)

public static TranslateDocumentResponse.Builder newBuilder(TranslateDocumentResponse prototype)
Parameter
NameDescription
prototypeTranslateDocumentResponse
Returns
TypeDescription
TranslateDocumentResponse.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TranslateDocumentResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
data