Class TranslateTextRequest (2.9.0)

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

The request message for synchronous translation.

Protobuf type google.cloud.translation.v3.TranslateTextRequest

Static Fields

CONTENTS_FIELD_NUMBER

public static final int CONTENTS_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

MIME_TYPE_FIELD_NUMBER

public static final int MIME_TYPE_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 TranslateTextRequest getDefaultInstance()
Returns
TypeDescription
TranslateTextRequest

getDescriptor()

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

newBuilder()

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

newBuilder(TranslateTextRequest prototype)

public static TranslateTextRequest.Builder newBuilder(TranslateTextRequest prototype)
Parameter
NameDescription
prototypeTranslateTextRequest
Returns
TypeDescription
TranslateTextRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static TranslateTextRequest parseFrom(ByteString data)
Parameter