Table of Contents

Class Segment

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Segment of the content.

public class Segment
Inheritance
Segment
Inherited Members
Extension Methods

Properties

EndIndex

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

[JsonPropertyName("endIndex")]
public int? EndIndex { get; set; }

Property Value

int?

PartIndex

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

[JsonPropertyName("partIndex")]
public int? PartIndex { get; set; }

Property Value

int?

StartIndex

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

[JsonPropertyName("startIndex")]
public int? StartIndex { get; set; }

Property Value

int?

Text

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

[JsonPropertyName("text")]
public string? Text { get; set; }

Property Value

string

See Also