- 2.87.0 (latest)
- 2.86.0
- 2.85.0
- 2.84.0
- 2.82.0
- 2.80.0
- 2.79.0
- 2.78.0
- 2.77.0
- 2.76.0
- 2.74.0
- 2.72.0
- 2.71.0
- 2.68.0
- 2.67.0
- 2.66.0
- 2.64.0
- 2.63.0
- 2.62.0
- 2.61.0
- 2.60.0
- 2.59.0
- 2.58.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.5
- 2.6.2
- 2.5.1
- 2.4.3
- 2.3.1
- 2.2.1
- 2.1.9
public final class Document extends GeneratedMessage implements DocumentOrBuilderDocument 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.v1beta3.Document
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > DocumentImplements
DocumentOrBuilderStatic Fields
BLOB_ASSETS_FIELD_NUMBER
public static final int BLOB_ASSETS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
CHUNKED_DOCUMENT_FIELD_NUMBER
public static final int CHUNKED_DOCUMENT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
CONTENT_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DOCID_FIELD_NUMBER
public static final int DOCID_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DOCUMENT_LAYOUT_FIELD_NUMBER
public static final int DOCUMENT_LAYOUT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
ENTITIES_FIELD_NUMBER
public static final int ENTITIES_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
ENTITIES_REVISIONS_FIELD_NUMBER
public static final int ENTITIES_REVISIONS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
ENTITIES_REVISION_ID_FIELD_NUMBER
public static final int ENTITIES_REVISION_ID_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
ENTITY_RELATIONS_FIELD_NUMBER
public static final int ENTITY_RELATIONS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
ENTITY_VALIDATION_OUTPUT_FIELD_NUMBER
public static final int ENTITY_VALIDATION_OUTPUT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
ERROR_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
MIME_TYPE_FIELD_NUMBER
public static final int MIME_TYPE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
PAGES_FIELD_NUMBER
public static final int PAGES_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
REVISIONS_FIELD_NUMBER
public static final int REVISIONS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
SHARD_INFO_FIELD_NUMBER
public static final int SHARD_INFO_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
TEXT_CHANGES_FIELD_NUMBER
public static final int TEXT_CHANGES_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
TEXT_FIELD_NUMBER
public static final int TEXT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
TEXT_STYLES_FIELD_NUMBER
public static final int TEXT_STYLES_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
URI_FIELD_NUMBER
public static final int URI_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static Document getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
Document |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static Document.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
Document.Builder |
|
newBuilder(Document prototype)
public static Document.Builder newBuilder(Document prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
Document |
| Returns | |
|---|---|
| Type | Description |
Document.Builder |
|
parseDelimitedFrom(InputStream input)
public static Document parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
Document |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Document parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Document |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static Document parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
Document |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Document parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Document |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static Document parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
Document |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Document parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Document |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static Document parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
Document |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Document parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Document |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static Document parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
Document |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Document parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Document |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static Document parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
Document |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Document parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Document |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<Document> parser()| Returns | |
|---|---|
| Type | Description |
Parser<Document> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getBlobAssets(int index)
public Document.BlobAsset getBlobAssets(int index)Optional. The blob assets in this document. This is used to store the content of the inline blobs in this document, for example, image bytes, such that it can be referenced by other fields in the document via asset id.
repeated .google.cloud.documentai.v1beta3.Document.BlobAsset blob_assets = 19 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Document.BlobAsset |
|
getBlobAssetsCount()
public int getBlobAssetsCount()Optional. The blob assets in this document. This is used to store the content of the inline blobs in this document, for example, image bytes, such that it can be referenced by other fields in the document via asset id.
repeated .google.cloud.documentai.v1beta3.Document.BlobAsset blob_assets = 19 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getBlobAssetsList()
public List<Document.BlobAsset> getBlobAssetsList()Optional. The blob assets in this document. This is used to store the content of the inline blobs in this document, for example, image bytes, such that it can be referenced by other fields in the document via asset id.
repeated .google.cloud.documentai.v1beta3.Document.BlobAsset blob_assets = 19 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<BlobAsset> |
|
getBlobAssetsOrBuilder(int index)
public Document.BlobAssetOrBuilder getBlobAssetsOrBuilder(int index)Optional. The blob assets in this document. This is used to store the content of the inline blobs in this document, for example, image bytes, such that it can be referenced by other fields in the document via asset id.
repeated .google.cloud.documentai.v1beta3.Document.BlobAsset blob_assets = 19 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Document.BlobAssetOrBuilder |
|
getBlobAssetsOrBuilderList()
public List<? extends Document.BlobAssetOrBuilder> getBlobAssetsOrBuilderList()Optional. The blob assets in this document. This is used to store the content of the inline blobs in this document, for example, image bytes, such that it can be referenced by other fields in the document via asset id.
repeated .google.cloud.documentai.v1beta3.Document.BlobAsset blob_assets = 19 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.documentai.v1beta3.Document.BlobAssetOrBuilder> |
|
getChunkedDocument()
public Document.ChunkedDocument getChunkedDocument()Document chunked based on chunking config.
.google.cloud.documentai.v1beta3.Document.ChunkedDocument chunked_document = 18;
| Returns | |
|---|---|
| Type | Description |
Document.ChunkedDocument |
The chunkedDocument. |
getChunkedDocumentOrBuilder()
public Document.ChunkedDocumentOrBuilder getChunkedDocumentOrBuilder()Document chunked based on chunking config.
.google.cloud.documentai.v1beta3.Document.ChunkedDocument chunked_document = 18;
| Returns | |
|---|---|
| Type | Description |
Document.ChunkedDocumentOrBuilder |
|
getContent()
public 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];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The content. |
getDefaultInstanceForType()
public Document getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Document |
|
getDocid()
public String getDocid()Optional. An internal identifier for document. Should be loggable (no PII).
string docid = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The docid. |
getDocidBytes()
public ByteString getDocidBytes()Optional. An internal identifier for document. Should be loggable (no PII).
string docid = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for docid. |
getDocumentLayout()
public Document.DocumentLayout getDocumentLayout()Parsed layout of the document.
.google.cloud.documentai.v1beta3.Document.DocumentLayout document_layout = 17;
| Returns | |
|---|---|
| Type | Description |
Document.DocumentLayout |
The documentLayout. |
getDocumentLayoutOrBuilder()
public Document.DocumentLayoutOrBuilder getDocumentLayoutOrBuilder()Parsed layout of the document.
.google.cloud.documentai.v1beta3.Document.DocumentLayout document_layout = 17;
| Returns | |
|---|---|
| Type | Description |
Document.DocumentLayoutOrBuilder |
|
getEntities(int index)
public Document.Entity getEntities(int index)A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries.
repeated .google.cloud.documentai.v1beta3.Document.Entity entities = 7;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Document.Entity |
|
getEntitiesCount()
public int getEntitiesCount()A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries.
repeated .google.cloud.documentai.v1beta3.Document.Entity entities = 7;
| Returns | |
|---|---|
| Type | Description |
int |
|
getEntitiesList()
public List<Document.Entity> getEntitiesList()A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries.
repeated .google.cloud.documentai.v1beta3.Document.Entity entities = 7;
| Returns | |
|---|---|
| Type | Description |
List<Entity> |
|
getEntitiesOrBuilder(int index)
public Document.EntityOrBuilder getEntitiesOrBuilder(int index)A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries.
repeated .google.cloud.documentai.v1beta3.Document.Entity entities = 7;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Document.EntityOrBuilder |
|
getEntitiesOrBuilderList()
public List<? extends Document.EntityOrBuilder> getEntitiesOrBuilderList()A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries.
repeated .google.cloud.documentai.v1beta3.Document.Entity entities = 7;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.documentai.v1beta3.Document.EntityOrBuilder> |
|
getEntitiesRevisionId()
public String getEntitiesRevisionId() The entity revision ID that document.entities field is based on.
If this field is set and entities_revisions is not empty, the entities in
document.entities field are the entities in the entity revision with this
ID and document.entity_validation_output field is the
entity_validation_output field in this entity revision.
string entities_revision_id = 23;
| Returns | |
|---|---|
| Type | Description |
String |
The entitiesRevisionId. |
getEntitiesRevisionIdBytes()
public ByteString getEntitiesRevisionIdBytes() The entity revision ID that document.entities field is based on.
If this field is set and entities_revisions is not empty, the entities in
document.entities field are the entities in the entity revision with this
ID and document.entity_validation_output field is the
entity_validation_output field in this entity revision.
string entities_revision_id = 23;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for entitiesRevisionId. |
getEntitiesRevisions(int index)
public Document.EntitiesRevision getEntitiesRevisions(int index)A list of entity revisions. The entity revisions are appended to the document in the processing order. This field can be used for comparing the entity extraction results at different stages of the processing.
repeated .google.cloud.documentai.v1beta3.Document.EntitiesRevision entities_revisions = 22;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Document.EntitiesRevision |
|
getEntitiesRevisionsCount()
public int getEntitiesRevisionsCount()A list of entity revisions. The entity revisions are appended to the document in the processing order. This field can be used for comparing the entity extraction results at different stages of the processing.
repeated .google.cloud.documentai.v1beta3.Document.EntitiesRevision entities_revisions = 22;
| Returns | |
|---|---|
| Type | Description |
int |
|
getEntitiesRevisionsList()
public List<Document.EntitiesRevision> getEntitiesRevisionsList()A list of entity revisions. The entity revisions are appended to the document in the processing order. This field can be used for comparing the entity extraction results at different stages of the processing.
repeated .google.cloud.documentai.v1beta3.Document.EntitiesRevision entities_revisions = 22;
| Returns | |
|---|---|
| Type | Description |
List<EntitiesRevision> |
|
getEntitiesRevisionsOrBuilder(int index)
public Document.EntitiesRevisionOrBuilder getEntitiesRevisionsOrBuilder(int index)A list of entity revisions. The entity revisions are appended to the document in the processing order. This field can be used for comparing the entity extraction results at different stages of the processing.
repeated .google.cloud.documentai.v1beta3.Document.EntitiesRevision entities_revisions = 22;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Document.EntitiesRevisionOrBuilder |
|
getEntitiesRevisionsOrBuilderList()
public List<? extends Document.EntitiesRevisionOrBuilder> getEntitiesRevisionsOrBuilderList()A list of entity revisions. The entity revisions are appended to the document in the processing order. This field can be used for comparing the entity extraction results at different stages of the processing.
repeated .google.cloud.documentai.v1beta3.Document.EntitiesRevision entities_revisions = 22;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.documentai.v1beta3.Document.EntitiesRevisionOrBuilder> |
|
getEntityRelations(int index)
public Document.EntityRelation getEntityRelations(int index)Placeholder. Relationship among Document.entities.
repeated .google.cloud.documentai.v1beta3.Document.EntityRelation entity_relations = 8;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Document.EntityRelation |
|
getEntityRelationsCount()
public int getEntityRelationsCount()Placeholder. Relationship among Document.entities.
repeated .google.cloud.documentai.v1beta3.Document.EntityRelation entity_relations = 8;
| Returns | |
|---|---|
| Type | Description |
int |
|
getEntityRelationsList()
public List<Document.EntityRelation> getEntityRelationsList()Placeholder. Relationship among Document.entities.
repeated .google.cloud.documentai.v1beta3.Document.EntityRelation entity_relations = 8;
| Returns | |
|---|---|
| Type | Description |
List<EntityRelation> |
|
getEntityRelationsOrBuilder(int index)
public Document.EntityRelationOrBuilder getEntityRelationsOrBuilder(int index)Placeholder. Relationship among Document.entities.
repeated .google.cloud.documentai.v1beta3.Document.EntityRelation entity_relations = 8;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Document.EntityRelationOrBuilder |
|
getEntityRelationsOrBuilderList()
public List<? extends Document.EntityRelationOrBuilder> getEntityRelationsOrBuilderList()Placeholder. Relationship among Document.entities.
repeated .google.cloud.documentai.v1beta3.Document.EntityRelation entity_relations = 8;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.documentai.v1beta3.Document.EntityRelationOrBuilder> |
|
getEntityValidationOutput()
public Document.EntityValidationOutput getEntityValidationOutput() The entity validation output for the document. This is the validation
output for document.entities field.
.google.cloud.documentai.v1beta3.Document.EntityValidationOutput entity_validation_output = 21;
| Returns | |
|---|---|
| Type | Description |
Document.EntityValidationOutput |
The entityValidationOutput. |
getEntityValidationOutputOrBuilder()
public Document.EntityValidationOutputOrBuilder getEntityValidationOutputOrBuilder() The entity validation output for the document. This is the validation
output for document.entities field.
.google.cloud.documentai.v1beta3.Document.EntityValidationOutput entity_validation_output = 21;
| Returns | |
|---|---|
| Type | Description |
Document.EntityValidationOutputOrBuilder |
|
getError()
public Status getError()Any error that occurred while processing this document.
.google.rpc.Status error = 10;
| Returns | |
|---|---|
| Type | Description |
com.google.rpc.Status |
The error. |
getErrorOrBuilder()
public StatusOrBuilder getErrorOrBuilder()Any error that occurred while processing this document.
.google.rpc.Status error = 10;
| Returns | |
|---|---|
| Type | Description |
com.google.rpc.StatusOrBuilder |
|
getMimeType()
public String getMimeType()An IANA published media type (MIME type).
string mime_type = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The mimeType. |
getMimeTypeBytes()
public ByteString getMimeTypeBytes()An IANA published media type (MIME type).
string mime_type = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for mimeType. |
getPages(int index)
public Document.Page getPages(int index)Visual page layout for the Document.
repeated .google.cloud.documentai.v1beta3.Document.Page pages = 6;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Document.Page |
|
getPagesCount()
public int getPagesCount()Visual page layout for the Document.
repeated .google.cloud.documentai.v1beta3.Document.Page pages = 6;
| Returns | |
|---|---|
| Type | Description |
int |
|
getPagesList()
public List<Document.Page> getPagesList()Visual page layout for the Document.
repeated .google.cloud.documentai.v1beta3.Document.Page pages = 6;
| Returns | |
|---|---|
| Type | Description |
List<Page> |
|
getPagesOrBuilder(int index)
public Document.PageOrBuilder getPagesOrBuilder(int index)Visual page layout for the Document.
repeated .google.cloud.documentai.v1beta3.Document.Page pages = 6;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Document.PageOrBuilder |
|
getPagesOrBuilderList()
public List<? extends Document.PageOrBuilder> getPagesOrBuilderList()Visual page layout for the Document.
repeated .google.cloud.documentai.v1beta3.Document.Page pages = 6;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.documentai.v1beta3.Document.PageOrBuilder> |
|
getParserForType()
public Parser<Document> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<Document> |
|
getRevisions(int index)
public Document.Revision getRevisions(int index)Placeholder. Revision history of this document.
repeated .google.cloud.documentai.v1beta3.Document.Revision revisions = 13;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Document.Revision |
|
getRevisionsCount()
public int getRevisionsCount()Placeholder. Revision history of this document.
repeated .google.cloud.documentai.v1beta3.Document.Revision revisions = 13;
| Returns | |
|---|---|
| Type | Description |
int |
|
getRevisionsList()
public List<Document.Revision> getRevisionsList()Placeholder. Revision history of this document.
repeated .google.cloud.documentai.v1beta3.Document.Revision revisions = 13;
| Returns | |
|---|---|
| Type | Description |
List<Revision> |
|
getRevisionsOrBuilder(int index)
public Document.RevisionOrBuilder getRevisionsOrBuilder(int index)Placeholder. Revision history of this document.
repeated .google.cloud.documentai.v1beta3.Document.Revision revisions = 13;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Document.RevisionOrBuilder |
|
getRevisionsOrBuilderList()
public List<? extends Document.RevisionOrBuilder> getRevisionsOrBuilderList()Placeholder. Revision history of this document.
repeated .google.cloud.documentai.v1beta3.Document.Revision revisions = 13;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.documentai.v1beta3.Document.RevisionOrBuilder> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
getShardInfo()
public 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.v1beta3.Document.ShardInfo shard_info = 9;
| Returns | |
|---|---|
| Type | Description |
Document.ShardInfo |
The shardInfo. |
getShardInfoOrBuilder()
public 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.v1beta3.Document.ShardInfo shard_info = 9;
| Returns | |
|---|---|
| Type | Description |
Document.ShardInfoOrBuilder |
|
getSourceCase()
public Document.SourceCase getSourceCase()| Returns | |
|---|---|
| Type | Description |
Document.SourceCase |
|
getText()
public String getText()Optional. UTF-8 encoded text in reading order from the document.
string text = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The text. |
getTextBytes()
public ByteString getTextBytes()Optional. UTF-8 encoded text in reading order from the document.
string text = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for text. |
getTextChanges(int index)
public Document.TextChange getTextChanges(int index)Placeholder. A list of text corrections made to 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.v1beta3.Document.TextChange text_changes = 14;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Document.TextChange |
|
getTextChangesCount()
public int getTextChangesCount()Placeholder. A list of text corrections made to 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.v1beta3.Document.TextChange text_changes = 14;
| Returns | |
|---|---|
| Type | Description |
int |
|
getTextChangesList()
public List<Document.TextChange> getTextChangesList()Placeholder. A list of text corrections made to 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.v1beta3.Document.TextChange text_changes = 14;
| Returns | |
|---|---|
| Type | Description |
List<TextChange> |
|
getTextChangesOrBuilder(int index)
public Document.TextChangeOrBuilder getTextChangesOrBuilder(int index)Placeholder. A list of text corrections made to 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.v1beta3.Document.TextChange text_changes = 14;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Document.TextChangeOrBuilder |
|
getTextChangesOrBuilderList()
public List<? extends Document.TextChangeOrBuilder> getTextChangesOrBuilderList()Placeholder. A list of text corrections made to 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.v1beta3.Document.TextChange text_changes = 14;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.documentai.v1beta3.Document.TextChangeOrBuilder> |
|
getTextStyles(int index) (deprecated)
public Document.Style getTextStyles(int index)Styles for the Document.text.
repeated .google.cloud.documentai.v1beta3.Document.Style text_styles = 5 [deprecated = true];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Document.Style |
|
getTextStylesCount() (deprecated)
public int getTextStylesCount()Styles for the Document.text.
repeated .google.cloud.documentai.v1beta3.Document.Style text_styles = 5 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
int |
|
getTextStylesList() (deprecated)
public List<Document.Style> getTextStylesList()Styles for the Document.text.
repeated .google.cloud.documentai.v1beta3.Document.Style text_styles = 5 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
List<Style> |
|
getTextStylesOrBuilder(int index) (deprecated)
public Document.StyleOrBuilder getTextStylesOrBuilder(int index)Styles for the Document.text.
repeated .google.cloud.documentai.v1beta3.Document.Style text_styles = 5 [deprecated = true];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Document.StyleOrBuilder |
|
getTextStylesOrBuilderList() (deprecated)
public List<? extends Document.StyleOrBuilder> getTextStylesOrBuilderList()Styles for the Document.text.
repeated .google.cloud.documentai.v1beta3.Document.Style text_styles = 5 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.documentai.v1beta3.Document.StyleOrBuilder> |
|
getUri()
public 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.
string uri = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The uri. |
getUriBytes()
public 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.
string uri = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for uri. |
hasChunkedDocument()
public boolean hasChunkedDocument()Document chunked based on chunking config.
.google.cloud.documentai.v1beta3.Document.ChunkedDocument chunked_document = 18;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the chunkedDocument field is set. |
hasContent()
public 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];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the content field is set. |
hasDocumentLayout()
public boolean hasDocumentLayout()Parsed layout of the document.
.google.cloud.documentai.v1beta3.Document.DocumentLayout document_layout = 17;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the documentLayout field is set. |
hasEntityValidationOutput()
public boolean hasEntityValidationOutput() The entity validation output for the document. This is the validation
output for document.entities field.
.google.cloud.documentai.v1beta3.Document.EntityValidationOutput entity_validation_output = 21;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the entityValidationOutput field is set. |
hasError()
public boolean hasError()Any error that occurred while processing this document.
.google.rpc.Status error = 10;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the error field is set. |
hasShardInfo()
public 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.v1beta3.Document.ShardInfo shard_info = 9;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the shardInfo field is set. |
hasUri()
public 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.
string uri = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the uri field is set. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public Document.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
Document.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Document.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
Document.Builder |
|
toBuilder()
public Document.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
Document.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|