public sealed class TextSegment : IMessage<Document.Types.TextAnchor.Types.TextSegment>, IEquatable<Document.Types.TextAnchor.Types.TextSegment>, IDeepCloneable<Document.Types.TextAnchor.Types.TextSegment>, IBufferMessage, IMessage
A text segment in the [Document.text][google.cloud.documentai.v1beta3.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.v1beta3.Document.ShardInfo.text_offset]
Implements
IMessage<Document.Types.TextAnchor.Types.TextSegment>, IEquatable<Document.Types.TextAnchor.Types.TextSegment>, IDeepCloneable<Document.Types.TextAnchor.Types.TextSegment>, IBufferMessage, IMessageNamespace
Google.Cloud.DocumentAI.V1Beta3Assembly
Google.Cloud.DocumentAI.V1Beta3.dll
Constructors
TextSegment()
public TextSegment()
TextSegment(Document.Types.TextAnchor.Types.TextSegment)
public TextSegment(Document.Types.TextAnchor.Types.TextSegment other)
Parameter | |
---|---|
Name | Description |
other | Document.Types.TextAnchor.Types.TextSegment |
Properties
EndIndex
public long EndIndex { get; set; }
[TextSegment][google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment] half open end UTF-8 char index in the [Document.text][google.cloud.documentai.v1beta3.Document.text].
Property Value | |
---|---|
Type | Description |
Int64 |
StartIndex
public long StartIndex { get; set; }
[TextSegment][google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment] start UTF-8 char index in the [Document.text][google.cloud.documentai.v1beta3.Document.text].
Property Value | |
---|---|
Type | Description |
Int64 |