Class GoogleCloudDocumentaiV1beta2Document
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.
Implements
Inherited Members
Namespace: Google.Apis.Document.v1beta2.Data
Assembly: Google.Apis.Document.v1beta2.dll
Syntax
public class GoogleCloudDocumentaiV1beta2Document : IDirectResponseSchema
Properties
ChunkedDocument
Document chunked based on chunking config.
Declaration
[JsonProperty("chunkedDocument")]
public virtual GoogleCloudDocumentaiV1beta2DocumentChunkedDocument ChunkedDocument { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudDocumentaiV1beta2DocumentChunkedDocument |
Content
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.
Declaration
[JsonProperty("content")]
public virtual string Content { get; set; }
Property Value
Type | Description |
---|---|
string |
DocumentLayout
Parsed layout of the document.
Declaration
[JsonProperty("documentLayout")]
public virtual GoogleCloudDocumentaiV1beta2DocumentDocumentLayout DocumentLayout { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudDocumentaiV1beta2DocumentDocumentLayout |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Entities
A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries.
Declaration
[JsonProperty("entities")]
public virtual IList<GoogleCloudDocumentaiV1beta2DocumentEntity> Entities { get; set; }
Property Value
Type | Description |
---|---|
IList<GoogleCloudDocumentaiV1beta2DocumentEntity> |
EntityRelations
Placeholder. Relationship among Document.entities.
Declaration
[JsonProperty("entityRelations")]
public virtual IList<GoogleCloudDocumentaiV1beta2DocumentEntityRelation> EntityRelations { get; set; }
Property Value
Type | Description |
---|---|
IList<GoogleCloudDocumentaiV1beta2DocumentEntityRelation> |
Error
Any error that occurred while processing this document.
Declaration
[JsonProperty("error")]
public virtual GoogleRpcStatus Error { get; set; }
Property Value
Type | Description |
---|---|
GoogleRpcStatus |
Labels
Labels for this document.
Declaration
[JsonProperty("labels")]
public virtual IList<GoogleCloudDocumentaiV1beta2DocumentLabel> Labels { get; set; }
Property Value
Type | Description |
---|---|
IList<GoogleCloudDocumentaiV1beta2DocumentLabel> |
MimeType
An IANA published media type (MIME type).
Declaration
[JsonProperty("mimeType")]
public virtual string MimeType { get; set; }
Property Value
Type | Description |
---|---|
string |
Pages
Visual page layout for the Document.
Declaration
[JsonProperty("pages")]
public virtual IList<GoogleCloudDocumentaiV1beta2DocumentPage> Pages { get; set; }
Property Value
Type | Description |
---|---|
IList<GoogleCloudDocumentaiV1beta2DocumentPage> |
Revisions
Placeholder. Revision history of this document.
Declaration
[JsonProperty("revisions")]
public virtual IList<GoogleCloudDocumentaiV1beta2DocumentRevision> Revisions { get; set; }
Property Value
Type | Description |
---|---|
IList<GoogleCloudDocumentaiV1beta2DocumentRevision> |
ShardInfo
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.
Declaration
[JsonProperty("shardInfo")]
public virtual GoogleCloudDocumentaiV1beta2DocumentShardInfo ShardInfo { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudDocumentaiV1beta2DocumentShardInfo |
Text
Optional. UTF-8 encoded text in reading order from the document.
Declaration
[JsonProperty("text")]
public virtual string Text { get; set; }
Property Value
Type | Description |
---|---|
string |
TextChanges
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.
Declaration
[JsonProperty("textChanges")]
public virtual IList<GoogleCloudDocumentaiV1beta2DocumentTextChange> TextChanges { get; set; }
Property Value
Type | Description |
---|---|
IList<GoogleCloudDocumentaiV1beta2DocumentTextChange> |
TextStyles
Styles for the Document.text.
Declaration
[JsonProperty("textStyles")]
public virtual IList<GoogleCloudDocumentaiV1beta2DocumentStyle> TextStyles { get; set; }
Property Value
Type | Description |
---|---|
IList<GoogleCloudDocumentaiV1beta2DocumentStyle> |
Uri
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.
Declaration
[JsonProperty("uri")]
public virtual string Uri { get; set; }
Property Value
Type | Description |
---|---|
string |