Class Document
Document represents the canonical document resource in Document Understanding
AI.
It is an interchange format that provides insights into documents and allows
for collaboration between users and Document Understanding AI to iterate and
optimize for quality.
Inheritance
System.Object
Document
Implements
Google.Protobuf.IBufferMessage
Inherited Members
System.Object.ToString()
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Google.Cloud.DocumentAI.V1Beta2.dll
Syntax
public sealed class Document : IMessage<Document>, IEquatable<Document>, IDeepCloneable<Document>, IBufferMessage, IMessage
Constructors
Document()
Declaration
Document(Document)
Declaration
public Document(Document other)
Parameters
Properties
Content
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
public ByteString Content { get; set; }
Property Value
Entities
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.
Declaration
public RepeatedField<Document.Types.Entity> Entities { get; }
Property Value
EntityRelations
Relationship among [Document.entities][google.cloud.documentai.v1beta2.Document.entities].
Declaration
public RepeatedField<Document.Types.EntityRelation> EntityRelations { get; }
Property Value
Error
Any error that occurred while processing this document.
Declaration
public Status Error { get; set; }
Property Value
Labels
[Label][google.cloud.documentai.v1beta2.Document.Label]s for this document.
Declaration
public RepeatedField<Document.Types.Label> Labels { get; }
Property Value
MimeType
Declaration
public string MimeType { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Pages
Visual page layout for the [Document][google.cloud.documentai.v1beta2.Document].
Declaration
public RepeatedField<Document.Types.Page> Pages { get; }
Property Value
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
public Document.Types.ShardInfo ShardInfo { get; set; }
Property Value
SourceCase
Declaration
public Document.SourceOneofCase SourceCase { get; }
Property Value
Text
UTF-8 encoded text in reading order from the document.
Declaration
public string Text { get; set; }
Property Value
| Type |
Description |
| System.String |
|
TextStyles
Styles for the [Document.text][google.cloud.documentai.v1beta2.Document.text].
Declaration
public RepeatedField<Document.Types.Style> TextStyles { get; }
Property Value
Uri
Currently supports Google Cloud Storage URI of the form
gs://bucket_name/object_name. Object versioning is not supported.
See Google Cloud Storage Request
URIs for more
info.
Declaration
public string Uri { get; set; }
Property Value
| Type |
Description |
| System.String |
|