public sealed class TextSegment : IMessage<TextSegment>, IEquatable<TextSegment>, IDeepCloneable<TextSegment>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud AI Platform v1beta1 API class TextSegment.
The text segment inside of DataItem.
Implements
IMessageTextSegment, IEquatableTextSegment, IDeepCloneableTextSegment, IBufferMessage, IMessageNamespace
Google.Cloud.AIPlatform.V1Beta1.SchemaAssembly
Google.Cloud.AIPlatform.V1Beta1.dll
Constructors
TextSegment()
public TextSegment()
TextSegment(TextSegment)
public TextSegment(TextSegment other)
Parameter | |
---|---|
Name | Description |
other |
TextSegment |
Properties
Content
public string Content { get; set; }
The text content in the segment for output only.
Property Value | |
---|---|
Type | Description |
string |
EndOffset
public ulong EndOffset { get; set; }
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 |
ulong |
StartOffset
public ulong StartOffset { get; set; }
Zero-based character index of the first character of the text segment (counting characters from the beginning of the text).
Property Value | |
---|---|
Type | Description |
ulong |