Segment Class

Segment of the content.

Definition

Namespace: GenerativeAI.Types
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public class Segment
Inheritance
Object    Segment

Constructors

SegmentInitializes a new instance of the Segment class

Properties

EndIndex Output only. End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero.
PartIndex Output only. The index of a Part object within its parent Content object.
StartIndex Output only. Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero.
Text Output only. The text corresponding to the segment from the response.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also