public final class DocumentTranslation extends com.google.protobuf.GeneratedMessageV3 implements DocumentTranslationOrBuilder
A translated document message.Protobuf type
google.cloud.translation.v3.DocumentTranslation| Modifier and Type | Class and Description |
|---|---|
static class |
DocumentTranslation.Builder
A translated document message.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
BYTE_STREAM_OUTPUTS_FIELD_NUMBER |
static int |
DETECTED_LANGUAGE_CODE_FIELD_NUMBER |
static int |
MIME_TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
com.google.protobuf.ByteString |
getByteStreamOutputs(int index)
The array of translated documents.
|
int |
getByteStreamOutputsCount()
The array of translated documents.
|
List<com.google.protobuf.ByteString> |
getByteStreamOutputsList()
The array of translated documents.
|
static DocumentTranslation |
getDefaultInstance() |
DocumentTranslation |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getDetectedLanguageCode()
The detected language for the input document.
|
com.google.protobuf.ByteString |
getDetectedLanguageCodeBytes()
The detected language for the input document.
|
String |
getMimeType()
The translated document's mime type.
|
com.google.protobuf.ByteString |
getMimeTypeBytes()
The translated document's mime type.
|
com.google.protobuf.Parser<DocumentTranslation> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static DocumentTranslation.Builder |
newBuilder() |
static DocumentTranslation.Builder |
newBuilder(DocumentTranslation prototype) |
DocumentTranslation.Builder |
newBuilderForType() |
protected DocumentTranslation.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static DocumentTranslation |
parseDelimitedFrom(InputStream input) |
static DocumentTranslation |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DocumentTranslation |
parseFrom(byte[] data) |
static DocumentTranslation |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DocumentTranslation |
parseFrom(ByteBuffer data) |
static DocumentTranslation |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DocumentTranslation |
parseFrom(com.google.protobuf.ByteString data) |
static DocumentTranslation |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DocumentTranslation |
parseFrom(com.google.protobuf.CodedInputStream input) |
static DocumentTranslation |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DocumentTranslation |
parseFrom(InputStream input) |
static DocumentTranslation |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<DocumentTranslation> |
parser() |
DocumentTranslation.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int BYTE_STREAM_OUTPUTS_FIELD_NUMBER
public static final int MIME_TYPE_FIELD_NUMBER
public static final int DETECTED_LANGUAGE_CODE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public List<com.google.protobuf.ByteString> getByteStreamOutputsList()
The array of translated documents. It is expected to be size 1 for now. We may produce multiple translated documents in the future for other type of file formats.
repeated bytes byte_stream_outputs = 1;getByteStreamOutputsList in interface DocumentTranslationOrBuilderpublic int getByteStreamOutputsCount()
The array of translated documents. It is expected to be size 1 for now. We may produce multiple translated documents in the future for other type of file formats.
repeated bytes byte_stream_outputs = 1;getByteStreamOutputsCount in interface DocumentTranslationOrBuilderpublic com.google.protobuf.ByteString getByteStreamOutputs(int index)
The array of translated documents. It is expected to be size 1 for now. We may produce multiple translated documents in the future for other type of file formats.
repeated bytes byte_stream_outputs = 1;getByteStreamOutputs in interface DocumentTranslationOrBuilderindex - The index of the element to return.public String getMimeType()
The translated document's mime type.
string mime_type = 2;getMimeType in interface DocumentTranslationOrBuilderpublic com.google.protobuf.ByteString getMimeTypeBytes()
The translated document's mime type.
string mime_type = 2;getMimeTypeBytes in interface DocumentTranslationOrBuilderpublic String getDetectedLanguageCode()
The detected language for the input document. If the user did not provide the source language for the input document, this field will have the language code automatically detected. If the source language was passed, auto-detection of the language does not occur and this field is empty.
string detected_language_code = 3;getDetectedLanguageCode in interface DocumentTranslationOrBuilderpublic com.google.protobuf.ByteString getDetectedLanguageCodeBytes()
The detected language for the input document. If the user did not provide the source language for the input document, this field will have the language code automatically detected. If the source language was passed, auto-detection of the language does not occur and this field is empty.
string detected_language_code = 3;getDetectedLanguageCodeBytes in interface DocumentTranslationOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static DocumentTranslation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DocumentTranslation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DocumentTranslation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DocumentTranslation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DocumentTranslation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DocumentTranslation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DocumentTranslation parseFrom(InputStream input) throws IOException
IOExceptionpublic static DocumentTranslation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DocumentTranslation parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static DocumentTranslation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DocumentTranslation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static DocumentTranslation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic DocumentTranslation.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static DocumentTranslation.Builder newBuilder()
public static DocumentTranslation.Builder newBuilder(DocumentTranslation prototype)
public DocumentTranslation.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected DocumentTranslation.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static DocumentTranslation getDefaultInstance()
public static com.google.protobuf.Parser<DocumentTranslation> parser()
public com.google.protobuf.Parser<DocumentTranslation> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public DocumentTranslation getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.