Class TextSegment
A contiguous part of a text (string), assuming it has an UTF-8 NFC encoding.
Inheritance
System.Object
TextSegment
Inherited Members
System.Object.ToString()
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Cloud.AutoML.V1
Assembly: Google.Cloud.AutoML.V1.dll
Syntax
public sealed class TextSegment : IMessage<TextSegment>, IEquatable<TextSegment>, IDeepCloneable<TextSegment>, IBufferMessage, IMessage
Constructors
TextSegment()
Declaration
public TextSegment()
TextSegment(TextSegment)
Declaration
public TextSegment(TextSegment other)
Parameters
Type | Name | Description |
---|---|---|
TextSegment | other |
Properties
Content
Output only. The content of the TextSegment.
Declaration
public string Content { get; set; }
Property Value
Type | Description |
---|---|
System.String |
EndOffset
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.
Declaration
public long EndOffset { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
StartOffset
Required. Zero-based character index of the first character of the text segment (counting characters from the beginning of the text).
Declaration
public long StartOffset { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |