Cloud AI Platform v1beta1 API - Class Segment (1.0.0-beta08)

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

Reference documentation and code samples for the Cloud AI Platform v1beta1 API class Segment.

Segment of the content.

Inheritance

object > Segment

Namespace

Google.Cloud.AIPlatform.V1Beta1

Assembly

Google.Cloud.AIPlatform.V1Beta1.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. End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero.

Property Value
Type Description
int

PartIndex

public int PartIndex { get; set; }

Output only. The index of a Part object within its parent Content object.

Property Value
Type Description
int

StartIndex

public int StartIndex { get; set; }

Output only. Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero.

Property Value
Type Description
int

Text

public string Text { get; set; }

Output only. The text corresponding to the segment from the response.

Property Value
Type Description
string