Package com.google.genai.types
Class Segment.Builder
java.lang.Object
com.google.genai.types.Segment.Builder
- Enclosing class:
- Segment
Builder for Segment.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Segment
build()
abstract Segment.Builder
Setter for endIndex.abstract Segment.Builder
Setter for partIndex.abstract Segment.Builder
startIndex
(Integer startIndex) Setter for startIndex.abstract Segment.Builder
Setter for text.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
endIndex
Setter for endIndex.endIndex: Output only. End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero.
-
partIndex
Setter for partIndex.partIndex: Output only. The index of a Part object within its parent Content object.
-
startIndex
Setter for startIndex.startIndex: Output only. Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero.
-
text
Setter for text.text: Output only. The text corresponding to the segment from the response.
-
build
-