public static final class Document.Translation extends com.google.protobuf.GeneratedMessageV3 implements Document.TranslationOrBuilder
A translation of the text segment.Protobuf type
google.cloud.documentai.v1beta3.Document.Translation| Modifier and Type | Class and Description |
|---|---|
static class |
Document.Translation.Builder
A translation of the text segment.
|
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 |
LANGUAGE_CODE_FIELD_NUMBER |
static int |
PROVENANCE_FIELD_NUMBER |
static int |
TEXT_ANCHOR_FIELD_NUMBER |
static int |
TRANSLATED_TEXT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static Document.Translation |
getDefaultInstance() |
Document.Translation |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getLanguageCode()
The BCP-47 language code, such as "en-US" or "sr-Latn".
|
com.google.protobuf.ByteString |
getLanguageCodeBytes()
The BCP-47 language code, such as "en-US" or "sr-Latn".
|
com.google.protobuf.Parser<Document.Translation> |
getParserForType() |
Document.Provenance |
getProvenance(int index)
The history of this annotation.
|
int |
getProvenanceCount()
The history of this annotation.
|
List<Document.Provenance> |
getProvenanceList()
The history of this annotation.
|
Document.ProvenanceOrBuilder |
getProvenanceOrBuilder(int index)
The history of this annotation.
|
List<? extends Document.ProvenanceOrBuilder> |
getProvenanceOrBuilderList()
The history of this annotation.
|
int |
getSerializedSize() |
Document.TextAnchor |
getTextAnchor()
Provenance of the translation.
|
Document.TextAnchorOrBuilder |
getTextAnchorOrBuilder()
Provenance of the translation.
|
String |
getTranslatedText()
Text translated into the target language.
|
com.google.protobuf.ByteString |
getTranslatedTextBytes()
Text translated into the target language.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasTextAnchor()
Provenance of the translation.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Document.Translation.Builder |
newBuilder() |
static Document.Translation.Builder |
newBuilder(Document.Translation prototype) |
Document.Translation.Builder |
newBuilderForType() |
protected Document.Translation.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Document.Translation |
parseDelimitedFrom(InputStream input) |
static Document.Translation |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.Translation |
parseFrom(byte[] data) |
static Document.Translation |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.Translation |
parseFrom(ByteBuffer data) |
static Document.Translation |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.Translation |
parseFrom(com.google.protobuf.ByteString data) |
static Document.Translation |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.Translation |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Document.Translation |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.Translation |
parseFrom(InputStream input) |
static Document.Translation |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Document.Translation> |
parser() |
Document.Translation.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, 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 TEXT_ANCHOR_FIELD_NUMBER
public static final int LANGUAGE_CODE_FIELD_NUMBER
public static final int TRANSLATED_TEXT_FIELD_NUMBER
public static final int PROVENANCE_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 boolean hasTextAnchor()
Provenance of the translation. Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a single `TextAnchor.text_segments` element. If the start and end index of the text segment are the same, the text change is inserted before that index.
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;hasTextAnchor in interface Document.TranslationOrBuilderpublic Document.TextAnchor getTextAnchor()
Provenance of the translation. Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a single `TextAnchor.text_segments` element. If the start and end index of the text segment are the same, the text change is inserted before that index.
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;getTextAnchor in interface Document.TranslationOrBuilderpublic Document.TextAnchorOrBuilder getTextAnchorOrBuilder()
Provenance of the translation. Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a single `TextAnchor.text_segments` element. If the start and end index of the text segment are the same, the text change is inserted before that index.
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;getTextAnchorOrBuilder in interface Document.TranslationOrBuilderpublic String getLanguageCode()
The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
string language_code = 2;getLanguageCode in interface Document.TranslationOrBuilderpublic com.google.protobuf.ByteString getLanguageCodeBytes()
The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
string language_code = 2;getLanguageCodeBytes in interface Document.TranslationOrBuilderpublic String getTranslatedText()
Text translated into the target language.
string translated_text = 3;getTranslatedText in interface Document.TranslationOrBuilderpublic com.google.protobuf.ByteString getTranslatedTextBytes()
Text translated into the target language.
string translated_text = 3;getTranslatedTextBytes in interface Document.TranslationOrBuilderpublic List<Document.Provenance> getProvenanceList()
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;getProvenanceList in interface Document.TranslationOrBuilderpublic List<? extends Document.ProvenanceOrBuilder> getProvenanceOrBuilderList()
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;getProvenanceOrBuilderList in interface Document.TranslationOrBuilderpublic int getProvenanceCount()
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;getProvenanceCount in interface Document.TranslationOrBuilderpublic Document.Provenance getProvenance(int index)
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;getProvenance in interface Document.TranslationOrBuilderpublic Document.ProvenanceOrBuilder getProvenanceOrBuilder(int index)
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;getProvenanceOrBuilder in interface Document.TranslationOrBuilderpublic 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 Document.Translation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.Translation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.Translation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.Translation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.Translation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.Translation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.Translation parseFrom(InputStream input) throws IOException
IOExceptionpublic static Document.Translation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Document.Translation parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Document.Translation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Document.Translation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Document.Translation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Document.Translation.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Document.Translation.Builder newBuilder()
public static Document.Translation.Builder newBuilder(Document.Translation prototype)
public Document.Translation.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Document.Translation.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Document.Translation getDefaultInstance()
public static com.google.protobuf.Parser<Document.Translation> parser()
public com.google.protobuf.Parser<Document.Translation> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Document.Translation getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2020 Google LLC. All rights reserved.