Cloud Document AI v1 API - Class Document.Types.TextAnchor.Types.TextSegment (3.15.0)

public sealed class Document.Types.TextAnchor.Types.TextSegment : IMessage<Document.Types.TextAnchor.Types.TextSegment>, IEquatable<Document.Types.TextAnchor.Types.TextSegment>, IDeepCloneable<Document.Types.TextAnchor.Types.TextSegment>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Document AI v1 API class Document.Types.TextAnchor.Types.TextSegment.

A text segment in the [Document.text][google.cloud.documentai.v1.Document.text]. The indices may be out of bounds which indicate that the text extends into another document shard for large sharded documents. See [ShardInfo.text_offset][google.cloud.documentai.v1.Document.ShardInfo.text_offset]

Inheritance

object > Document.Types.TextAnchor.Types.TextSegment

Namespace

Google.Cloud.DocumentAI.V1

Assembly

Google.Cloud.DocumentAI.V1.dll

Constructors

TextSegment()

public TextSegment()

TextSegment(TextSegment)

public TextSegment(Document.Types.TextAnchor.Types.TextSegment other)
Parameter
NameDescription
otherDocumentTypesTextAnchorTypesTextSegment

Properties

EndIndex

public long EndIndex { get; set; }

[TextSegment][google.cloud.documentai.v1.Document.TextAnchor.TextSegment] half open end UTF-8 char index in the [Document.text][google.cloud.documentai.v1.Document.text].

Property Value
TypeDescription
long

StartIndex

public long StartIndex { get; set; }

[TextSegment][google.cloud.documentai.v1.Document.TextAnchor.TextSegment] start UTF-8 char index in the [Document.text][google.cloud.documentai.v1.Document.text].

Property Value
TypeDescription
long