Class TranslateDocumentRequest (2.9.0)

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

A document translation request.

Protobuf type google.cloud.translation.v3beta1.TranslateDocumentRequest

Static Fields

DOCUMENT_INPUT_CONFIG_FIELD_NUMBER

public static final int DOCUMENT_INPUT_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

DOCUMENT_OUTPUT_CONFIG_FIELD_NUMBER

public static final int DOCUMENT_OUTPUT_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

GLOSSARY_CONFIG_FIELD_NUMBER

public static final int GLOSSARY_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
TypeDescription
int

MODEL_FIELD_NUMBER

public static final int MODEL_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCE_LANGUAGE_CODE_FIELD_NUMBER

public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER
Field Value
TypeDescription
int

TARGET_LANGUAGE_CODE_FIELD_NUMBER

public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TranslateDocumentRequest getDefaultInstance()
Returns
TypeDescription
TranslateDocumentRequest

getDescriptor()

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

newBuilder()

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

newBuilder(TranslateDocumentRequest prototype)

public static TranslateDocumentRequest.Builder newBuilder(TranslateDocumentRequest prototype)
Parameter
NameDescription
prototypeTranslateDocumentRequest
Returns
TypeDescription
TranslateDocumentRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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