Class GroundingSupport.Builder
- Enclosing class:
- GroundingSupport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract GroundingSupport
build()
confidenceScores
(Float... confidenceScores) Setter for confidenceScores.abstract GroundingSupport.Builder
confidenceScores
(List<Float> confidenceScores) Setter for confidenceScores.groundingChunkIndices
(Integer... groundingChunkIndices) Setter for groundingChunkIndices.abstract GroundingSupport.Builder
groundingChunkIndices
(List<Integer> groundingChunkIndices) Setter for groundingChunkIndices.abstract GroundingSupport.Builder
Setter for segment.segment
(Segment.Builder segmentBuilder) Setter for segment builder.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
confidenceScores
Setter for confidenceScores.confidenceScores: Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. For Gemini 2.0 and before, this list must have the same size as the grounding_chunk_indices. For Gemini 2.5 and after, this list will be empty and should be ignored.
-
confidenceScores
Setter for confidenceScores.confidenceScores: Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. For Gemini 2.0 and before, this list must have the same size as the grounding_chunk_indices. For Gemini 2.5 and after, this list will be empty and should be ignored.
-
groundingChunkIndices
Setter for groundingChunkIndices.groundingChunkIndices: A list of indices (into 'grounding_chunk') specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim.
-
groundingChunkIndices
Setter for groundingChunkIndices.groundingChunkIndices: A list of indices (into 'grounding_chunk') specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim.
-
segment
Setter for segment.segment: Segment of the content this support belongs to.
-
segment
Setter for segment builder.segment: Segment of the content this support belongs to.
-
build
-