Google Cloud Dialogflow v2 API - Class Segment (4.32.0)

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

Reference documentation and code samples for the Google Cloud Dialogflow v2 API class Segment.

A segment of the content.

Inheritance

object > Segment

Namespace

Google.Cloud.Dialogflow.V2

Assembly

Google.Cloud.Dialogflow.V2.dll

Constructors

Segment()

public Segment()

Segment(Segment)

public Segment(Segment other)
Parameter
Name Description
other Segment

Properties

EndIndex

public int EndIndex { get; set; }

Output only. The end index of the segment, measured in bytes. This marks the end of the segment and is exclusive, meaning the segment includes content up to, but not including, the byte at this index.

Property Value
Type Description
int

StartIndex

public int StartIndex { get; set; }

Output only. The start index of the segment, measured in bytes. This marks the beginning of the segment and is inclusive, meaning the byte at this index is the first byte of the segment.

Property Value
Type Description
int

Text

public string Text { get; set; }

Output only. The text of the segment.

Property Value
Type Description
string