Class GroundingSupport.Builder
-
- All Implemented Interfaces:
public abstract class GroundingSupport.BuilderBuilder for GroundingSupport.
-
-
Constructor Summary
Constructors Constructor Description GroundingSupport.Builder()
-
Method Summary
Modifier and Type Method Description abstract GroundingSupport.BuilderconfidenceScores(List<Float> confidenceScores)Setter for confidenceScores. GroundingSupport.BuilderconfidenceScores(Array<Float> confidenceScores)Setter for confidenceScores. GroundingSupport.BuilderclearConfidenceScores()Clears the value of confidenceScores field. abstract GroundingSupport.BuildergroundingChunkIndices(List<Integer> groundingChunkIndices)Setter for groundingChunkIndices. GroundingSupport.BuildergroundingChunkIndices(Array<Integer> groundingChunkIndices)Setter for groundingChunkIndices. GroundingSupport.BuilderclearGroundingChunkIndices()Clears the value of groundingChunkIndices field. abstract GroundingSupport.Buildersegment(Segment segment)Setter for segment. GroundingSupport.Buildersegment(Segment.Builder segmentBuilder)Setter for segment builder. GroundingSupport.BuilderclearSegment()Clears the value of segment field. abstract GroundingSupport.BuilderrenderedParts(List<Integer> renderedParts)Setter for renderedParts. GroundingSupport.BuilderrenderedParts(Array<Integer> renderedParts)Setter for renderedParts. GroundingSupport.BuilderclearRenderedParts()Clears the value of renderedParts field. abstract GroundingSupportbuild()-
-
Method Detail
-
confidenceScores
abstract GroundingSupport.Builder confidenceScores(List<Float> 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
@CanIgnoreReturnValue() GroundingSupport.Builder confidenceScores(Array<Float> 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
@CanIgnoreReturnValue() GroundingSupport.Builder clearConfidenceScores()
Clears the value of confidenceScores field.
-
groundingChunkIndices
abstract GroundingSupport.Builder groundingChunkIndices(List<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.
-
groundingChunkIndices
@CanIgnoreReturnValue() GroundingSupport.Builder groundingChunkIndices(Array<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
@CanIgnoreReturnValue() GroundingSupport.Builder clearGroundingChunkIndices()
Clears the value of groundingChunkIndices field.
-
segment
abstract GroundingSupport.Builder segment(Segment segment)
Setter for segment.
segment: Segment of the content this support belongs to.
-
segment
@CanIgnoreReturnValue() GroundingSupport.Builder segment(Segment.Builder segmentBuilder)
Setter for segment builder.
segment: Segment of the content this support belongs to.
-
clearSegment
@CanIgnoreReturnValue() GroundingSupport.Builder clearSegment()
Clears the value of segment field.
-
renderedParts
abstract GroundingSupport.Builder renderedParts(List<Integer> 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
@CanIgnoreReturnValue() GroundingSupport.Builder renderedParts(Array<Integer> 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
@CanIgnoreReturnValue() GroundingSupport.Builder clearRenderedParts()
Clears the value of renderedParts field.
-
build
abstract GroundingSupport build()
-
-
-
-