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 class
Builder for GroundingMetadata. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GroundingMetadata.Builder
builder()
Instantiates a builder for GroundingMetadata.static GroundingMetadata
Deserializes a JSON string to a GroundingMetadata object.Optional.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.Builder
Creates a builder with the same values as this instance.Optional.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
GroundingMetadata
public GroundingMetadata()
-
-
Method Details
-
googleMapsWidgetContextToken
Optional. Output only. Resource name of the Google Maps widget context token to be used with the PlacesContextElement widget to render contextual data. This is populated only for Google Maps grounding. -
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.
-