public static interface Document.TranslationOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
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".
|
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.
|
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.
|
boolean |
hasTextAnchor()
Provenance of the translation.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofboolean 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;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;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;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;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;String getTranslatedText()
Text translated into the target language.
string translated_text = 3;com.google.protobuf.ByteString getTranslatedTextBytes()
Text translated into the target language.
string translated_text = 3;List<Document.Provenance> getProvenanceList()
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;Document.Provenance getProvenance(int index)
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;int getProvenanceCount()
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;List<? extends Document.ProvenanceOrBuilder> getProvenanceOrBuilderList()
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;Document.ProvenanceOrBuilder getProvenanceOrBuilder(int index)
The history of this annotation.
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;Copyright © 2020 Google LLC. All rights reserved.