Package com.google.cloud.documentai.v1
Interface DocumentOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Document,Document.Builder
@Generated
public interface DocumentOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetBlobAssets(int index) Optional.intOptional.Optional.getBlobAssetsOrBuilder(int index) Optional.List<? extends Document.BlobAssetOrBuilder>Optional.Document chunked based on chunking config.Document chunked based on chunking config.com.google.protobuf.ByteStringOptional.getDocid()Optional.com.google.protobuf.ByteStringOptional.Parsed layout of the document.Parsed layout of the document.getEntities(int index) A list of entities detected on [Document.text][google.cloud.documentai.v1.Document.text].intA list of entities detected on [Document.text][google.cloud.documentai.v1.Document.text].A list of entities detected on [Document.text][google.cloud.documentai.v1.Document.text].getEntitiesOrBuilder(int index) A list of entities detected on [Document.text][google.cloud.documentai.v1.Document.text].List<? extends Document.EntityOrBuilder>A list of entities detected on [Document.text][google.cloud.documentai.v1.Document.text].The entity revision ID that `document.entities` field is based on.com.google.protobuf.ByteStringThe entity revision ID that `document.entities` field is based on.getEntitiesRevisions(int index) A list of entity revisions.intA list of entity revisions.A list of entity revisions.getEntitiesRevisionsOrBuilder(int index) A list of entity revisions.List<? extends Document.EntitiesRevisionOrBuilder>A list of entity revisions.getEntityRelations(int index) Placeholder.intPlaceholder.Placeholder.getEntityRelationsOrBuilder(int index) Placeholder.List<? extends Document.EntityRelationOrBuilder>Placeholder.The entity validation output for the document.The entity validation output for the document.getError()Any error that occurred while processing this document.Any error that occurred while processing this document.An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml).com.google.protobuf.ByteStringAn IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml).getPages(int index) Visual page layout for the [Document][google.cloud.documentai.v1.Document].intVisual page layout for the [Document][google.cloud.documentai.v1.Document].Visual page layout for the [Document][google.cloud.documentai.v1.Document].getPagesOrBuilder(int index) Visual page layout for the [Document][google.cloud.documentai.v1.Document].List<? extends Document.PageOrBuilder>Visual page layout for the [Document][google.cloud.documentai.v1.Document].getRevisions(int index) Placeholder.intPlaceholder.Placeholder.getRevisionsOrBuilder(int index) Placeholder.List<? extends Document.RevisionOrBuilder>Placeholder.Information about the sharding if this document is sharded part of a larger document.Information about the sharding if this document is sharded part of a larger document.getText()Optional.com.google.protobuf.ByteStringOptional.getTextChanges(int index) Placeholder.intPlaceholder.Placeholder.getTextChangesOrBuilder(int index) Placeholder.List<? extends Document.TextChangeOrBuilder>Placeholder.getTextStyles(int index) Deprecated.intDeprecated.Deprecated.getTextStylesOrBuilder(int index) Deprecated.List<? extends Document.StyleOrBuilder>Deprecated.getUri()Optional.com.google.protobuf.ByteStringOptional.booleanDocument chunked based on chunking config.booleanOptional.booleanParsed layout of the document.booleanThe entity validation output for the document.booleanhasError()Any error that occurred while processing this document.booleanInformation about the sharding if this document is sharded part of a larger document.booleanhasUri()Optional.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasUri
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];- Returns:
- Whether the uri field is set.
-
getUri
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];- Returns:
- The uri.
-
getUriBytes
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];- Returns:
- The bytes for uri.
-
hasContent
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:
- Whether the content field is set.
-
getContent
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];- Returns:
- The content.
-
getDocid
String getDocid()Optional. An internal identifier for document. Should be loggable (no PII).
string docid = 15 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The docid.
-
getDocidBytes
com.google.protobuf.ByteString getDocidBytes()Optional. An internal identifier for document. Should be loggable (no PII).
string docid = 15 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for docid.
-
getMimeType
String getMimeType()An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
string mime_type = 3;- Returns:
- The mimeType.
-
getMimeTypeBytes
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;- Returns:
- The bytes for mimeType.
-
getText
String getText()Optional. UTF-8 encoded text in reading order from the document.
string text = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The text.
-
getTextBytes
com.google.protobuf.ByteString getTextBytes()Optional. UTF-8 encoded text in reading order from the document.
string text = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for text.
-
getTextStylesList
Deprecated.Styles for the [Document.text][google.cloud.documentai.v1.Document.text].
repeated .google.cloud.documentai.v1.Document.Style text_styles = 5 [deprecated = true]; -
getTextStyles
Deprecated.Styles for the [Document.text][google.cloud.documentai.v1.Document.text].
repeated .google.cloud.documentai.v1.Document.Style text_styles = 5 [deprecated = true]; -
getTextStylesCount
Deprecated.Styles for the [Document.text][google.cloud.documentai.v1.Document.text].
repeated .google.cloud.documentai.v1.Document.Style text_styles = 5 [deprecated = true]; -
getTextStylesOrBuilderList
Deprecated.Styles for the [Document.text][google.cloud.documentai.v1.Document.text].
repeated .google.cloud.documentai.v1.Document.Style text_styles = 5 [deprecated = true]; -
getTextStylesOrBuilder
Deprecated.Styles for the [Document.text][google.cloud.documentai.v1.Document.text].
repeated .google.cloud.documentai.v1.Document.Style text_styles = 5 [deprecated = true]; -
getPagesList
List<Document.Page> getPagesList()Visual page layout for the [Document][google.cloud.documentai.v1.Document].
repeated .google.cloud.documentai.v1.Document.Page pages = 6; -
getPages
Visual page layout for the [Document][google.cloud.documentai.v1.Document].
repeated .google.cloud.documentai.v1.Document.Page pages = 6; -
getPagesCount
int getPagesCount()Visual page layout for the [Document][google.cloud.documentai.v1.Document].
repeated .google.cloud.documentai.v1.Document.Page pages = 6; -
getPagesOrBuilderList
List<? extends Document.PageOrBuilder> getPagesOrBuilderList()Visual page layout for the [Document][google.cloud.documentai.v1.Document].
repeated .google.cloud.documentai.v1.Document.Page pages = 6; -
getPagesOrBuilder
Visual page layout for the [Document][google.cloud.documentai.v1.Document].
repeated .google.cloud.documentai.v1.Document.Page pages = 6; -
getEntitiesList
List<Document.Entity> getEntitiesList()A list of entities detected on [Document.text][google.cloud.documentai.v1.Document.text]. For document shards, entities in this list may cross shard boundaries.
repeated .google.cloud.documentai.v1.Document.Entity entities = 7; -
getEntities
A list of entities detected on [Document.text][google.cloud.documentai.v1.Document.text]. For document shards, entities in this list may cross shard boundaries.
repeated .google.cloud.documentai.v1.Document.Entity entities = 7; -
getEntitiesCount
int getEntitiesCount()A list of entities detected on [Document.text][google.cloud.documentai.v1.Document.text]. For document shards, entities in this list may cross shard boundaries.
repeated .google.cloud.documentai.v1.Document.Entity entities = 7; -
getEntitiesOrBuilderList
List<? extends Document.EntityOrBuilder> getEntitiesOrBuilderList()A list of entities detected on [Document.text][google.cloud.documentai.v1.Document.text]. For document shards, entities in this list may cross shard boundaries.
repeated .google.cloud.documentai.v1.Document.Entity entities = 7; -
getEntitiesOrBuilder
A list of entities detected on [Document.text][google.cloud.documentai.v1.Document.text]. For document shards, entities in this list may cross shard boundaries.
repeated .google.cloud.documentai.v1.Document.Entity entities = 7; -
getEntityRelationsList
List<Document.EntityRelation> getEntityRelationsList()Placeholder. Relationship among [Document.entities][google.cloud.documentai.v1.Document.entities].
repeated .google.cloud.documentai.v1.Document.EntityRelation entity_relations = 8; -
getEntityRelations
Placeholder. Relationship among [Document.entities][google.cloud.documentai.v1.Document.entities].
repeated .google.cloud.documentai.v1.Document.EntityRelation entity_relations = 8; -
getEntityRelationsCount
int getEntityRelationsCount()Placeholder. Relationship among [Document.entities][google.cloud.documentai.v1.Document.entities].
repeated .google.cloud.documentai.v1.Document.EntityRelation entity_relations = 8; -
getEntityRelationsOrBuilderList
List<? extends Document.EntityRelationOrBuilder> getEntityRelationsOrBuilderList()Placeholder. Relationship among [Document.entities][google.cloud.documentai.v1.Document.entities].
repeated .google.cloud.documentai.v1.Document.EntityRelation entity_relations = 8; -
getEntityRelationsOrBuilder
Placeholder. Relationship among [Document.entities][google.cloud.documentai.v1.Document.entities].
repeated .google.cloud.documentai.v1.Document.EntityRelation entity_relations = 8; -
getTextChangesList
List<Document.TextChange> getTextChangesList()Placeholder. A list of text corrections made to [Document.text][google.cloud.documentai.v1.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.v1.Document.TextChange text_changes = 14; -
getTextChanges
Placeholder. A list of text corrections made to [Document.text][google.cloud.documentai.v1.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.v1.Document.TextChange text_changes = 14; -
getTextChangesCount
int getTextChangesCount()Placeholder. A list of text corrections made to [Document.text][google.cloud.documentai.v1.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.v1.Document.TextChange text_changes = 14; -
getTextChangesOrBuilderList
List<? extends Document.TextChangeOrBuilder> getTextChangesOrBuilderList()Placeholder. A list of text corrections made to [Document.text][google.cloud.documentai.v1.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.v1.Document.TextChange text_changes = 14; -
getTextChangesOrBuilder
Placeholder. A list of text corrections made to [Document.text][google.cloud.documentai.v1.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.v1.Document.TextChange text_changes = 14; -
hasShardInfo
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.v1.Document.ShardInfo shard_info = 9;- Returns:
- Whether the shardInfo field is set.
-
getShardInfo
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.v1.Document.ShardInfo shard_info = 9;- Returns:
- The shardInfo.
-
getShardInfoOrBuilder
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.v1.Document.ShardInfo shard_info = 9; -
hasError
boolean hasError()Any error that occurred while processing this document.
.google.rpc.Status error = 10;- Returns:
- Whether the error field is set.
-
getError
Status getError()Any error that occurred while processing this document.
.google.rpc.Status error = 10;- Returns:
- The error.
-
getErrorOrBuilder
StatusOrBuilder getErrorOrBuilder()Any error that occurred while processing this document.
.google.rpc.Status error = 10; -
getRevisionsList
List<Document.Revision> getRevisionsList()Placeholder. Revision history of this document.
repeated .google.cloud.documentai.v1.Document.Revision revisions = 13; -
getRevisions
Placeholder. Revision history of this document.
repeated .google.cloud.documentai.v1.Document.Revision revisions = 13; -
getRevisionsCount
int getRevisionsCount()Placeholder. Revision history of this document.
repeated .google.cloud.documentai.v1.Document.Revision revisions = 13; -
getRevisionsOrBuilderList
List<? extends Document.RevisionOrBuilder> getRevisionsOrBuilderList()Placeholder. Revision history of this document.
repeated .google.cloud.documentai.v1.Document.Revision revisions = 13; -
getRevisionsOrBuilder
Placeholder. Revision history of this document.
repeated .google.cloud.documentai.v1.Document.Revision revisions = 13; -
hasDocumentLayout
boolean hasDocumentLayout()Parsed layout of the document.
.google.cloud.documentai.v1.Document.DocumentLayout document_layout = 17;- Returns:
- Whether the documentLayout field is set.
-
getDocumentLayout
Document.DocumentLayout getDocumentLayout()Parsed layout of the document.
.google.cloud.documentai.v1.Document.DocumentLayout document_layout = 17;- Returns:
- The documentLayout.
-
getDocumentLayoutOrBuilder
Document.DocumentLayoutOrBuilder getDocumentLayoutOrBuilder()Parsed layout of the document.
.google.cloud.documentai.v1.Document.DocumentLayout document_layout = 17; -
hasChunkedDocument
boolean hasChunkedDocument()Document chunked based on chunking config.
.google.cloud.documentai.v1.Document.ChunkedDocument chunked_document = 18;- Returns:
- Whether the chunkedDocument field is set.
-
getChunkedDocument
Document.ChunkedDocument getChunkedDocument()Document chunked based on chunking config.
.google.cloud.documentai.v1.Document.ChunkedDocument chunked_document = 18;- Returns:
- The chunkedDocument.
-
getChunkedDocumentOrBuilder
Document.ChunkedDocumentOrBuilder getChunkedDocumentOrBuilder()Document chunked based on chunking config.
.google.cloud.documentai.v1.Document.ChunkedDocument chunked_document = 18; -
getBlobAssetsList
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.v1.Document.BlobAsset blob_assets = 19 [(.google.api.field_behavior) = OPTIONAL]; -
getBlobAssets
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.v1.Document.BlobAsset blob_assets = 19 [(.google.api.field_behavior) = OPTIONAL]; -
getBlobAssetsCount
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.v1.Document.BlobAsset blob_assets = 19 [(.google.api.field_behavior) = OPTIONAL]; -
getBlobAssetsOrBuilderList
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.v1.Document.BlobAsset blob_assets = 19 [(.google.api.field_behavior) = OPTIONAL]; -
getBlobAssetsOrBuilder
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.v1.Document.BlobAsset blob_assets = 19 [(.google.api.field_behavior) = OPTIONAL]; -
hasEntityValidationOutput
boolean hasEntityValidationOutput()The entity validation output for the document. This is the validation output for `document.entities` field.
.google.cloud.documentai.v1.Document.EntityValidationOutput entity_validation_output = 21;- Returns:
- Whether the entityValidationOutput field is set.
-
getEntityValidationOutput
Document.EntityValidationOutput getEntityValidationOutput()The entity validation output for the document. This is the validation output for `document.entities` field.
.google.cloud.documentai.v1.Document.EntityValidationOutput entity_validation_output = 21;- Returns:
- The entityValidationOutput.
-
getEntityValidationOutputOrBuilder
Document.EntityValidationOutputOrBuilder getEntityValidationOutputOrBuilder()The entity validation output for the document. This is the validation output for `document.entities` field.
.google.cloud.documentai.v1.Document.EntityValidationOutput entity_validation_output = 21; -
getEntitiesRevisionsList
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.v1.Document.EntitiesRevision entities_revisions = 22; -
getEntitiesRevisions
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.v1.Document.EntitiesRevision entities_revisions = 22; -
getEntitiesRevisionsCount
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.v1.Document.EntitiesRevision entities_revisions = 22; -
getEntitiesRevisionsOrBuilderList
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.v1.Document.EntitiesRevision entities_revisions = 22; -
getEntitiesRevisionsOrBuilder
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.v1.Document.EntitiesRevision entities_revisions = 22; -
getEntitiesRevisionId
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:
- The entitiesRevisionId.
-
getEntitiesRevisionIdBytes
com.google.protobuf.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:
- The bytes for entitiesRevisionId.
-
getSourceCase
Document.SourceCase getSourceCase()
-