Class TextSegment (2.4.0)

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.

Inheritance

Object > TextSegment

Namespace

Google.Cloud.AutoML.V1

Assembly

Google.Cloud.AutoML.V1.dll

Constructors

TextSegment()

public TextSegment()

TextSegment(TextSegment)

public TextSegment(TextSegment other)
Parameter
NameDescription
otherTextSegment

Properties

Content

public string Content { get; set; }

Output only. The content of the TextSegment.

Property Value
TypeDescription
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
TypeDescription
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
TypeDescription
Int64