Class GroundingSupport.Builder
- Enclosing class:
- GroundingSupport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract GroundingSupportbuild()Clears the value of confidenceScores field.Clears the value of groundingChunkIndices field.Clears the value of renderedParts field.Clears the value of segment field.confidenceScores(Float... confidenceScores) Setter for confidenceScores.abstract GroundingSupport.BuilderconfidenceScores(List<Float> confidenceScores) Setter for confidenceScores.groundingChunkIndices(Integer... groundingChunkIndices) Setter for groundingChunkIndices.abstract GroundingSupport.BuildergroundingChunkIndices(List<Integer> groundingChunkIndices) Setter for groundingChunkIndices.renderedParts(Integer... renderedParts) Setter for renderedParts.abstract GroundingSupport.BuilderrenderedParts(List<Integer> renderedParts) Setter for renderedParts.abstract GroundingSupport.BuilderSetter 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. This list must have the same size as the grounding_chunk_indices.
-
confidenceScores
Setter for confidenceScores.confidenceScores: Confidence score of the support references.
Ranges from 0 to 1. 1 is the most confident. This list must have the same size as the grounding_chunk_indices.
-
clearConfidenceScores
Clears the value of confidenceScores field. -
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
@CanIgnoreReturnValue public GroundingSupport.Builder groundingChunkIndices(Integer... 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.
-
clearGroundingChunkIndices
Clears the value of groundingChunkIndices field. -
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.
-
clearSegment
Clears the value of segment field. -
renderedParts
Setter for renderedParts.renderedParts: Indices into the `rendered_parts` field of the `GroundingMetadata` message. These indices specify which rendered parts are associated with this support message.
-
renderedParts
Setter for renderedParts.renderedParts: Indices into the `rendered_parts` field of the `GroundingMetadata` message. These indices specify which rendered parts are associated with this support message.
-
clearRenderedParts
Clears the value of renderedParts field. -
build
-