public sealed class TextSegment : IMessage<TextSegment>, IEquatable<TextSegment>, IDeepCloneable<TextSegment>, IBufferMessage, IMessage
A contiguous part of a text (string), assuming it has an UTF-8 NFC encoding.
Implements
IMessage<TextSegment>, IEquatable<TextSegment>, IDeepCloneable<TextSegment>, IBufferMessage, IMessageNamespace
Google.Cloud.AutoML.V1Assembly
Google.Cloud.AutoML.V1.dll
Constructors
TextSegment()
public TextSegment()
TextSegment(TextSegment)
public TextSegment(TextSegment other)
Parameter | |
---|---|
Name | Description |
other | TextSegment |
Properties
Content
public string Content { get; set; }
Output only. The content of the TextSegment.
Property Value | |
---|---|
Type | Description |
String |
EndOffset
public long EndOffset { get; set; }
Required. Zero-based character index of the first character past the end of the text segment (counting character from the beginning of the text). The character at the end_offset is NOT included in the text segment.
Property Value | |
---|---|
Type | Description |
Int64 |
StartOffset
public long StartOffset { get; set; }
Required. Zero-based character index of the first character of the text segment (counting characters from the beginning of the text).
Property Value | |
---|---|
Type | Description |
Int64 |