Package com.google.genai.types
Class GroundingMetadata
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.GroundingMetadata
Metadata returned to client when grounding is enabled.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for GroundingMetadata. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GroundingMetadata.Builderbuilder()Instantiates a builder for GroundingMetadata.static GroundingMetadataDeserializes a JSON string to a GroundingMetadata object.abstract Optional<List<GroundingChunk>>List of supporting references retrieved from specified grounding source.abstract Optional<List<GroundingSupport>>Optional.abstract Optional<RetrievalMetadata>Optional.Optional.abstract Optional<SearchEntryPoint>Optional.abstract GroundingMetadata.BuilderCreates a builder with the same values as this instance.Optional.Methods inherited from class com.google.genai.JsonSerializable
toJson
-
Constructor Details
-
GroundingMetadata
public GroundingMetadata()
-
-
Method Details
-
groundingChunks
List of supporting references retrieved from specified grounding source. -
groundingSupports
Optional. List of grounding support. -
retrievalMetadata
Optional. Output only. Retrieval metadata. -
retrievalQueries
Optional. Queries executed by the retrieval tools. -
searchEntryPoint
Optional. Google search entry for the following-up web searches. -
webSearchQueries
Optional. Web search queries for the following-up web search. -
builder
Instantiates a builder for GroundingMetadata. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a GroundingMetadata object.
-