Package com.google.genai.types
Class GroundingMetadata
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.GroundingMetadata
None
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for GroundingMetadata. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GroundingMetadata.Builderbuilder()Instantiates a builder for GroundingMetadata.static GroundingMetadataDeserializes a JSON string to a GroundingMetadata object.Optional.abstract Optional<List<GroundingChunk>>A list of supporting references retrieved from the grounding source.abstract Optional<List<GroundingSupport>>Optional.Optional.abstract Optional<RetrievalMetadata>Optional.Optional.abstract Optional<SearchEntryPoint>Optional.abstract Optional<List<GroundingMetadataSourceFlaggingUri>>Optional.abstract GroundingMetadata.BuilderCreates a builder with the same values as this instance.Optional.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
GroundingMetadata
public GroundingMetadata()
-
-
Method Details
-
imageSearchQueries
Optional. The image search queries that were used to generate the content. This field is populated only when the grounding source is Google Search with the Image Search search_type enabled. -
groundingChunks
A list of supporting references retrieved from the grounding source. This field is populated when the grounding source is Google Search, Vertex AI Search, or Google Maps. -
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. This field is not supported in Gemini API. -
groundingSupports
Optional. List of grounding support. -
retrievalMetadata
Optional. Output only. Retrieval metadata. -
retrievalQueries
Optional. Queries executed by the retrieval tools. This field is not supported in Gemini API. -
searchEntryPoint
Optional. Google search entry for the following-up web searches. -
sourceFlaggingUris
Optional. Output only. List of source flagging uris. This is currently populated only for Google Maps grounding. This field is not supported in Gemini API. -
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.
-