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 Segmentbuild()Clears the value of endIndex field.Clears the value of partIndex field.Clears the value of startIndex field.Clears the value of text field.abstract Segment.BuilderSetter for endIndex.abstract Segment.BuilderSetter for partIndex.abstract Segment.BuilderstartIndex(Integer startIndex) Setter for startIndex.abstract Segment.BuilderSetter 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.
-
clearEndIndex
Clears the value of endIndex field. -
partIndex
Setter for partIndex.partIndex: Output only. The index of a Part object within its parent Content object.
-
clearPartIndex
Clears the value of partIndex field. -
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.
-
clearStartIndex
Clears the value of startIndex field. -
text
Setter for text.text: Output only. The text corresponding to the segment from the response.
-
clearText
Clears the value of text field. -
build
-