Show / Hide Table of Contents

Class Document.Types.TextAnchor.Types.TextSegment

A text segment in the [Document.text][google.cloud.documentai.v1beta2.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.v1beta2.Document.ShardInfo.text_offset]

Inheritance
System.Object
Document.Types.TextAnchor.Types.TextSegment
Implements
IMessage<Document.Types.TextAnchor.Types.TextSegment>
System.IEquatable<Document.Types.TextAnchor.Types.TextSegment>
IDeepCloneable<Document.Types.TextAnchor.Types.TextSegment>
Google.Protobuf.IBufferMessage
IMessage
Inherited Members
System.Object.ToString()
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Cloud.DocumentAI.V1Beta2
Assembly: Google.Cloud.DocumentAI.V1Beta2.dll
Syntax
public sealed class TextSegment : IMessage<Document.Types.TextAnchor.Types.TextSegment>, IEquatable<Document.Types.TextAnchor.Types.TextSegment>, IDeepCloneable<Document.Types.TextAnchor.Types.TextSegment>, IBufferMessage, IMessage

Constructors

TextSegment()

Declaration
public TextSegment()

TextSegment(Document.Types.TextAnchor.Types.TextSegment)

Declaration
public TextSegment(Document.Types.TextAnchor.Types.TextSegment other)
Parameters
Type Name Description
Document.Types.TextAnchor.Types.TextSegment other

Properties

EndIndex

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

Declaration
public long EndIndex { get; set; }
Property Value
Type Description
System.Int64

StartIndex

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

Declaration
public long StartIndex { get; set; }
Property Value
Type Description
System.Int64
Back to top