Google AutoML v1 API - Class TextSegment (3.1.0)

public sealed class TextSegment : IMessage<TextSegment>, IEquatable<TextSegment>, IDeepCloneable<TextSegment>, IBufferMessage, IMessage

Reference documentation and code samples for the Google AutoML v1 API class TextSegment.

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