public final class Document extends com.google.protobuf.GeneratedMessageV3 implements DocumentOrBuilder
Document represents the canonical document resource in Document AI. It is an interchange format that provides insights into documents and allows for collaboration between users and Document AI to iterate and optimize for quality.Protobuf type
google.cloud.documentai.v1beta2.Document| Modifier and Type | Class and Description |
|---|---|
static class |
Document.Builder
Document represents the canonical document resource in Document AI.
|
static class |
Document.Entity
An entity that could be a phrase in the text or a property that belongs to
the document.
|
static interface |
Document.EntityOrBuilder |
static class |
Document.EntityRelation
Relationship between
[Entities][google.cloud.documentai.v1beta2.Document.Entity].
|
static interface |
Document.EntityRelationOrBuilder |
static class |
Document.Label
Label attaches schema information and/or other metadata to segments within
a [Document][google.cloud.documentai.v1beta2.Document].
|
static interface |
Document.LabelOrBuilder |
static class |
Document.Page
A page in a [Document][google.cloud.documentai.v1beta2.Document].
|
static class |
Document.PageAnchor
Referencing the visual context of the entity in the
[Document.pages][google.cloud.documentai.v1beta2.Document.pages].
|
static interface |
Document.PageAnchorOrBuilder |
static interface |
Document.PageOrBuilder |
static class |
Document.Provenance
Structure to identify provenance relationships between annotations in
different revisions.
|
static interface |
Document.ProvenanceOrBuilder |
static class |
Document.Revision
Contains past or forward revisions of this document.
|
static interface |
Document.RevisionOrBuilder |
static class |
Document.ShardInfo
For a large document, sharding may be performed to produce several
document shards.
|
static interface |
Document.ShardInfoOrBuilder |
static class |
Document.SourceCase |
static class |
Document.Style
Annotation for common text style attributes.
|
static interface |
Document.StyleOrBuilder |
static class |
Document.TextAnchor
Text reference indexing into the
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
static interface |
Document.TextAnchorOrBuilder |
static class |
Document.TextChange
This message is used for text changes aka.
|
static interface |
Document.TextChangeOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CONTENT_FIELD_NUMBER |
static int |
ENTITIES_FIELD_NUMBER |
static int |
ENTITY_RELATIONS_FIELD_NUMBER |
static int |
ERROR_FIELD_NUMBER |
static int |
LABELS_FIELD_NUMBER |
static int |
MIME_TYPE_FIELD_NUMBER |
static int |
PAGES_FIELD_NUMBER |
static int |
REVISIONS_FIELD_NUMBER |
static int |
SHARD_INFO_FIELD_NUMBER |
static int |
TEXT_CHANGES_FIELD_NUMBER |
static int |
TEXT_FIELD_NUMBER |
static int |
TEXT_STYLES_FIELD_NUMBER |
static int |
URI_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
com.google.protobuf.ByteString |
getContent()
Optional.
|
static Document |
getDefaultInstance() |
Document |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Document.Entity |
getEntities(int index)
A list of entities detected on
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
int |
getEntitiesCount()
A list of entities detected on
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
List<Document.Entity> |
getEntitiesList()
A list of entities detected on
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
Document.EntityOrBuilder |
getEntitiesOrBuilder(int index)
A list of entities detected on
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
List<? extends Document.EntityOrBuilder> |
getEntitiesOrBuilderList()
A list of entities detected on
[Document.text][google.cloud.documentai.v1beta2.Document.text].
|
Document.EntityRelation |
getEntityRelations(int index)
Placeholder.
|
int |
getEntityRelationsCount()
Placeholder.
|
List<Document.EntityRelation> |
getEntityRelationsList()
Placeholder.
|
Document.EntityRelationOrBuilder |
getEntityRelationsOrBuilder(int index)
Placeholder.
|
List<? extends Document.EntityRelationOrBuilder> |
getEntityRelationsOrBuilderList()
Placeholder.
|
com.google.rpc.Status |
getError()
Any error that occurred while processing this document.
|
com.google.rpc.StatusOrBuilder |
getErrorOrBuilder()
Any error that occurred while processing this document.
|
Document.Label |
getLabels(int index)
[Label][google.cloud.documentai.v1beta2.Document.Label]s for this document.
|
int |
getLabelsCount()
[Label][google.cloud.documentai.v1beta2.Document.Label]s for this document.
|
List<Document.Label> |
getLabelsList()
[Label][google.cloud.documentai.v1beta2.Document.Label]s for this document.
|
Document.LabelOrBuilder |
getLabelsOrBuilder(int index)
[Label][google.cloud.documentai.v1beta2.Document.Label]s for this document.
|
List<? extends Document.LabelOrBuilder> |
getLabelsOrBuilderList()
[Label][google.cloud.documentai.v1beta2.Document.Label]s for this document.
|
String |
getMimeType()
An IANA published [media type (MIME
type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
|
com.google.protobuf.ByteString |
getMimeTypeBytes()
An IANA published [media type (MIME
type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
|
Document.Page |
getPages(int index)
Visual page layout for the
[Document][google.cloud.documentai.v1beta2.Document].
|
int |
getPagesCount()
Visual page layout for the
[Document][google.cloud.documentai.v1beta2.Document].
|
List<Document.Page> |
getPagesList()
Visual page layout for the
[Document][google.cloud.documentai.v1beta2.Document].
|
Document.PageOrBuilder |
getPagesOrBuilder(int index)
Visual page layout for the
[Document][google.cloud.documentai.v1beta2.Document].
|
List<? extends Document.PageOrBuilder> |
getPagesOrBuilderList()
Visual page layout for the
[Document][google.cloud.documentai.v1beta2.Document].
|
com.google.protobuf.Parser<Document> |
getParserForType() |
Document.Revision |
getRevisions(int index)
Placeholder.
|
int |
getRevisionsCount()
Placeholder.
|
List<Document.Revision> |
getRevisionsList()
Placeholder.
|
Document.RevisionOrBuilder |
getRevisionsOrBuilder(int index)
Placeholder.
|
List<? extends Document.RevisionOrBuilder> |
getRevisionsOrBuilderList()
Placeholder.
|
int |
getSerializedSize() |
Document.ShardInfo |
getShardInfo()
Information about the sharding if this document is sharded part of a larger
document.
|
Document.ShardInfoOrBuilder |
getShardInfoOrBuilder()
Information about the sharding if this document is sharded part of a larger
document.
|
Document.SourceCase |
getSourceCase() |
String |
getText()
Optional.
|
com.google.protobuf.ByteString |
getTextBytes()
Optional.
|
Document.TextChange |
getTextChanges(int index)
Placeholder.
|
int |
getTextChangesCount()
Placeholder.
|
List<Document.TextChange> |
getTextChangesList()
Placeholder.
|
Document.TextChangeOrBuilder |
getTextChangesOrBuilder(int index)
Placeholder.
|
List<? extends Document.TextChangeOrBuilder> |
getTextChangesOrBuilderList()
Placeholder.
|
Document.Style |
getTextStyles(int index)
Deprecated.
|
int |
getTextStylesCount()
Deprecated.
|
List<Document.Style> |
getTextStylesList()
Deprecated.
|
Document.StyleOrBuilder |
getTextStylesOrBuilder(int index)
Deprecated.
|
List<? extends Document.StyleOrBuilder> |
getTextStylesOrBuilderList()
Deprecated.
|
String |
getUri()
Optional.
|
com.google.protobuf.ByteString |
getUriBytes()
Optional.
|
boolean |
hasContent()
Optional.
|
boolean |
hasError()
Any error that occurred while processing this document.
|
int |
hashCode() |
boolean |
hasShardInfo()
Information about the sharding if this document is sharded part of a larger
document.
|
boolean |
hasUri()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Document.Builder |
newBuilder() |
static Document.Builder |
newBuilder(Document prototype) |
Document.Builder |
newBuilderForType() |
protected Document.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Document |
parseDelimitedFrom(InputStream input) |
static Document |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document |
parseFrom(byte[] data) |
static Document |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document |
parseFrom(ByteBuffer data) |
static Document |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document |
parseFrom(com.google.protobuf.ByteString data) |
static Document |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Document |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document |
parseFrom(InputStream input) |
static Document |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Document> |
parser() |
Document.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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 URI_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER
public static final int MIME_TYPE_FIELD_NUMBER
public static final int TEXT_FIELD_NUMBER
public static final int TEXT_STYLES_FIELD_NUMBER
public static final int PAGES_FIELD_NUMBER
public static final int ENTITIES_FIELD_NUMBER
public static final int ENTITY_RELATIONS_FIELD_NUMBER
public static final int TEXT_CHANGES_FIELD_NUMBER
public static final int SHARD_INFO_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER
public static final int REVISIONS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance 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 Document.SourceCase getSourceCase()
getSourceCase in interface DocumentOrBuilderpublic boolean hasUri()
Optional. Currently supports Google Cloud Storage URI of the form `gs://bucket_name/object_name`. Object versioning is not supported. For more information, refer to [Google Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-uris).
string uri = 1 [(.google.api.field_behavior) = OPTIONAL];hasUri in interface DocumentOrBuilderpublic String getUri()
Optional. Currently supports Google Cloud Storage URI of the form `gs://bucket_name/object_name`. Object versioning is not supported. For more information, refer to [Google Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-uris).
string uri = 1 [(.google.api.field_behavior) = OPTIONAL];getUri in interface DocumentOrBuilderpublic com.google.protobuf.ByteString getUriBytes()
Optional. Currently supports Google Cloud Storage URI of the form `gs://bucket_name/object_name`. Object versioning is not supported. For more information, refer to [Google Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-uris).
string uri = 1 [(.google.api.field_behavior) = OPTIONAL];getUriBytes in interface DocumentOrBuilderpublic boolean hasContent()
Optional. Inline document content, represented as a stream of bytes. Note: As with all `bytes` fields, protobuffers use a pure binary representation, whereas JSON representations use base64.
bytes content = 2 [(.google.api.field_behavior) = OPTIONAL];hasContent in interface DocumentOrBuilderpublic com.google.protobuf.ByteString getContent()
Optional. Inline document content, represented as a stream of bytes. Note: As with all `bytes` fields, protobuffers use a pure binary representation, whereas JSON representations use base64.
bytes content = 2 [(.google.api.field_behavior) = OPTIONAL];getContent in interface DocumentOrBuilderpublic String getMimeType()
An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
string mime_type = 3;getMimeType in interface DocumentOrBuilderpublic com.google.protobuf.ByteString getMimeTypeBytes()
An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
string mime_type = 3;getMimeTypeBytes in interface DocumentOrBuilderpublic String getText()
Optional. UTF-8 encoded text in reading order from the document.
string text = 4 [(.google.api.field_behavior) = OPTIONAL];getText in interface DocumentOrBuilderpublic com.google.protobuf.ByteString getTextBytes()
Optional. UTF-8 encoded text in reading order from the document.
string text = 4 [(.google.api.field_behavior) = OPTIONAL];getTextBytes in interface DocumentOrBuilder@Deprecated public List<Document.Style> getTextStylesList()
Styles for the [Document.text][google.cloud.documentai.v1beta2.Document.text].
repeated .google.cloud.documentai.v1beta2.Document.Style text_styles = 5 [deprecated = true];
getTextStylesList in interface DocumentOrBuilder@Deprecated public List<? extends Document.StyleOrBuilder> getTextStylesOrBuilderList()
Styles for the [Document.text][google.cloud.documentai.v1beta2.Document.text].
repeated .google.cloud.documentai.v1beta2.Document.Style text_styles = 5 [deprecated = true];
getTextStylesOrBuilderList in interface DocumentOrBuilder@Deprecated public int getTextStylesCount()
Styles for the [Document.text][google.cloud.documentai.v1beta2.Document.text].
repeated .google.cloud.documentai.v1beta2.Document.Style text_styles = 5 [deprecated = true];
getTextStylesCount in interface DocumentOrBuilder@Deprecated public Document.Style getTextStyles(int index)
Styles for the [Document.text][google.cloud.documentai.v1beta2.Document.text].
repeated .google.cloud.documentai.v1beta2.Document.Style text_styles = 5 [deprecated = true];
getTextStyles in interface DocumentOrBuilder@Deprecated public Document.StyleOrBuilder getTextStylesOrBuilder(int index)
Styles for the [Document.text][google.cloud.documentai.v1beta2.Document.text].
repeated .google.cloud.documentai.v1beta2.Document.Style text_styles = 5 [deprecated = true];
getTextStylesOrBuilder in interface DocumentOrBuilderpublic List<Document.Page> getPagesList()
Visual page layout for the [Document][google.cloud.documentai.v1beta2.Document].
repeated .google.cloud.documentai.v1beta2.Document.Page pages = 6;getPagesList in interface DocumentOrBuilderpublic List<? extends Document.PageOrBuilder> getPagesOrBuilderList()
Visual page layout for the [Document][google.cloud.documentai.v1beta2.Document].
repeated .google.cloud.documentai.v1beta2.Document.Page pages = 6;getPagesOrBuilderList in interface DocumentOrBuilderpublic int getPagesCount()
Visual page layout for the [Document][google.cloud.documentai.v1beta2.Document].
repeated .google.cloud.documentai.v1beta2.Document.Page pages = 6;getPagesCount in interface DocumentOrBuilderpublic Document.Page getPages(int index)
Visual page layout for the [Document][google.cloud.documentai.v1beta2.Document].
repeated .google.cloud.documentai.v1beta2.Document.Page pages = 6;getPages in interface DocumentOrBuilderpublic Document.PageOrBuilder getPagesOrBuilder(int index)
Visual page layout for the [Document][google.cloud.documentai.v1beta2.Document].
repeated .google.cloud.documentai.v1beta2.Document.Page pages = 6;getPagesOrBuilder in interface DocumentOrBuilderpublic List<Document.Entity> getEntitiesList()
A list of entities detected on [Document.text][google.cloud.documentai.v1beta2.Document.text]. For document shards, entities in this list may cross shard boundaries.
repeated .google.cloud.documentai.v1beta2.Document.Entity entities = 7;getEntitiesList in interface DocumentOrBuilderpublic List<? extends Document.EntityOrBuilder> getEntitiesOrBuilderList()
A list of entities detected on [Document.text][google.cloud.documentai.v1beta2.Document.text]. For document shards, entities in this list may cross shard boundaries.
repeated .google.cloud.documentai.v1beta2.Document.Entity entities = 7;getEntitiesOrBuilderList in interface DocumentOrBuilderpublic int getEntitiesCount()
A list of entities detected on [Document.text][google.cloud.documentai.v1beta2.Document.text]. For document shards, entities in this list may cross shard boundaries.
repeated .google.cloud.documentai.v1beta2.Document.Entity entities = 7;getEntitiesCount in interface DocumentOrBuilderpublic Document.Entity getEntities(int index)
A list of entities detected on [Document.text][google.cloud.documentai.v1beta2.Document.text]. For document shards, entities in this list may cross shard boundaries.
repeated .google.cloud.documentai.v1beta2.Document.Entity entities = 7;getEntities in interface DocumentOrBuilderpublic Document.EntityOrBuilder getEntitiesOrBuilder(int index)
A list of entities detected on [Document.text][google.cloud.documentai.v1beta2.Document.text]. For document shards, entities in this list may cross shard boundaries.
repeated .google.cloud.documentai.v1beta2.Document.Entity entities = 7;getEntitiesOrBuilder in interface DocumentOrBuilderpublic List<Document.EntityRelation> getEntityRelationsList()
Placeholder. Relationship among [Document.entities][google.cloud.documentai.v1beta2.Document.entities].
repeated .google.cloud.documentai.v1beta2.Document.EntityRelation entity_relations = 8;
getEntityRelationsList in interface DocumentOrBuilderpublic List<? extends Document.EntityRelationOrBuilder> getEntityRelationsOrBuilderList()
Placeholder. Relationship among [Document.entities][google.cloud.documentai.v1beta2.Document.entities].
repeated .google.cloud.documentai.v1beta2.Document.EntityRelation entity_relations = 8;
getEntityRelationsOrBuilderList in interface DocumentOrBuilderpublic int getEntityRelationsCount()
Placeholder. Relationship among [Document.entities][google.cloud.documentai.v1beta2.Document.entities].
repeated .google.cloud.documentai.v1beta2.Document.EntityRelation entity_relations = 8;
getEntityRelationsCount in interface DocumentOrBuilderpublic Document.EntityRelation getEntityRelations(int index)
Placeholder. Relationship among [Document.entities][google.cloud.documentai.v1beta2.Document.entities].
repeated .google.cloud.documentai.v1beta2.Document.EntityRelation entity_relations = 8;
getEntityRelations in interface DocumentOrBuilderpublic Document.EntityRelationOrBuilder getEntityRelationsOrBuilder(int index)
Placeholder. Relationship among [Document.entities][google.cloud.documentai.v1beta2.Document.entities].
repeated .google.cloud.documentai.v1beta2.Document.EntityRelation entity_relations = 8;
getEntityRelationsOrBuilder in interface DocumentOrBuilderpublic List<Document.TextChange> getTextChangesList()
Placeholder. A list of text corrections made to [Document.text][google.cloud.documentai.v1beta2.Document.text]. This is usually used for annotating corrections to OCR mistakes. Text changes for a given revision may not overlap with each other.
repeated .google.cloud.documentai.v1beta2.Document.TextChange text_changes = 14;getTextChangesList in interface DocumentOrBuilderpublic List<? extends Document.TextChangeOrBuilder> getTextChangesOrBuilderList()
Placeholder. A list of text corrections made to [Document.text][google.cloud.documentai.v1beta2.Document.text]. This is usually used for annotating corrections to OCR mistakes. Text changes for a given revision may not overlap with each other.
repeated .google.cloud.documentai.v1beta2.Document.TextChange text_changes = 14;getTextChangesOrBuilderList in interface DocumentOrBuilderpublic int getTextChangesCount()
Placeholder. A list of text corrections made to [Document.text][google.cloud.documentai.v1beta2.Document.text]. This is usually used for annotating corrections to OCR mistakes. Text changes for a given revision may not overlap with each other.
repeated .google.cloud.documentai.v1beta2.Document.TextChange text_changes = 14;getTextChangesCount in interface DocumentOrBuilderpublic Document.TextChange getTextChanges(int index)
Placeholder. A list of text corrections made to [Document.text][google.cloud.documentai.v1beta2.Document.text]. This is usually used for annotating corrections to OCR mistakes. Text changes for a given revision may not overlap with each other.
repeated .google.cloud.documentai.v1beta2.Document.TextChange text_changes = 14;getTextChanges in interface DocumentOrBuilderpublic Document.TextChangeOrBuilder getTextChangesOrBuilder(int index)
Placeholder. A list of text corrections made to [Document.text][google.cloud.documentai.v1beta2.Document.text]. This is usually used for annotating corrections to OCR mistakes. Text changes for a given revision may not overlap with each other.
repeated .google.cloud.documentai.v1beta2.Document.TextChange text_changes = 14;getTextChangesOrBuilder in interface DocumentOrBuilderpublic boolean hasShardInfo()
Information about the sharding if this document is sharded part of a larger document. If the document is not sharded, this message is not specified.
.google.cloud.documentai.v1beta2.Document.ShardInfo shard_info = 9;hasShardInfo in interface DocumentOrBuilderpublic Document.ShardInfo getShardInfo()
Information about the sharding if this document is sharded part of a larger document. If the document is not sharded, this message is not specified.
.google.cloud.documentai.v1beta2.Document.ShardInfo shard_info = 9;getShardInfo in interface DocumentOrBuilderpublic Document.ShardInfoOrBuilder getShardInfoOrBuilder()
Information about the sharding if this document is sharded part of a larger document. If the document is not sharded, this message is not specified.
.google.cloud.documentai.v1beta2.Document.ShardInfo shard_info = 9;getShardInfoOrBuilder in interface DocumentOrBuilderpublic List<Document.Label> getLabelsList()
[Label][google.cloud.documentai.v1beta2.Document.Label]s for this document.
repeated .google.cloud.documentai.v1beta2.Document.Label labels = 11;getLabelsList in interface DocumentOrBuilderpublic List<? extends Document.LabelOrBuilder> getLabelsOrBuilderList()
[Label][google.cloud.documentai.v1beta2.Document.Label]s for this document.
repeated .google.cloud.documentai.v1beta2.Document.Label labels = 11;getLabelsOrBuilderList in interface DocumentOrBuilderpublic int getLabelsCount()
[Label][google.cloud.documentai.v1beta2.Document.Label]s for this document.
repeated .google.cloud.documentai.v1beta2.Document.Label labels = 11;getLabelsCount in interface DocumentOrBuilderpublic Document.Label getLabels(int index)
[Label][google.cloud.documentai.v1beta2.Document.Label]s for this document.
repeated .google.cloud.documentai.v1beta2.Document.Label labels = 11;getLabels in interface DocumentOrBuilderpublic Document.LabelOrBuilder getLabelsOrBuilder(int index)
[Label][google.cloud.documentai.v1beta2.Document.Label]s for this document.
repeated .google.cloud.documentai.v1beta2.Document.Label labels = 11;getLabelsOrBuilder in interface DocumentOrBuilderpublic boolean hasError()
Any error that occurred while processing this document.
.google.rpc.Status error = 10;hasError in interface DocumentOrBuilderpublic com.google.rpc.Status getError()
Any error that occurred while processing this document.
.google.rpc.Status error = 10;getError in interface DocumentOrBuilderpublic com.google.rpc.StatusOrBuilder getErrorOrBuilder()
Any error that occurred while processing this document.
.google.rpc.Status error = 10;getErrorOrBuilder in interface DocumentOrBuilderpublic List<Document.Revision> getRevisionsList()
Placeholder. Revision history of this document.
repeated .google.cloud.documentai.v1beta2.Document.Revision revisions = 13;getRevisionsList in interface DocumentOrBuilderpublic List<? extends Document.RevisionOrBuilder> getRevisionsOrBuilderList()
Placeholder. Revision history of this document.
repeated .google.cloud.documentai.v1beta2.Document.Revision revisions = 13;getRevisionsOrBuilderList in interface DocumentOrBuilderpublic int getRevisionsCount()
Placeholder. Revision history of this document.
repeated .google.cloud.documentai.v1beta2.Document.Revision revisions = 13;getRevisionsCount in interface DocumentOrBuilderpublic Document.Revision getRevisions(int index)
Placeholder. Revision history of this document.
repeated .google.cloud.documentai.v1beta2.Document.Revision revisions = 13;getRevisions in interface DocumentOrBuilderpublic Document.RevisionOrBuilder getRevisionsOrBuilder(int index)
Placeholder. Revision history of this document.
repeated .google.cloud.documentai.v1beta2.Document.Revision revisions = 13;getRevisionsOrBuilder in interface DocumentOrBuilderpublic 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 parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document parseFrom(InputStream input) throws IOException
IOExceptionpublic static Document parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Document parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Document parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Document parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Document parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Document.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Document.Builder newBuilder()
public static Document.Builder newBuilder(Document prototype)
public Document.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Document.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Document getDefaultInstance()
public static com.google.protobuf.Parser<Document> parser()
public com.google.protobuf.Parser<Document> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Document getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.