Package com.google.genai.types
Class GroundingChunkMaps
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.GroundingChunkMaps
A `Maps` chunk is a piece of evidence that comes from Google Maps.
It contains information about a place, such as its name, address, and reviews. This is used to provide the user with rich, location-based information.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for GroundingChunkMaps. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GroundingChunkMaps.Builderbuilder()Instantiates a builder for GroundingChunkMaps.static GroundingChunkMapsDeserializes a JSON string to a GroundingChunkMaps object.abstract Optional<GroundingChunkMapsPlaceAnswerSources>The sources that were used to generate the place answer.placeId()This Place's resource name, in `places/{place_id}` format.text()The text of the place answer.title()The title of the place.abstract GroundingChunkMaps.BuilderCreates a builder with the same values as this instance.uri()The URI of the place.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
GroundingChunkMaps
public GroundingChunkMaps()
-
-
Method Details
-
placeAnswerSources
The sources that were used to generate the place answer.This includes review snippets and photos that were used to generate the answer, as well as URIs to flag content.
-
placeId
This Place's resource name, in `places/{place_id}` format.This can be used to look up the place in the Google Maps API.
-
text
The text of the place answer. -
title
The title of the place. -
uri
The URI of the place. -
builder
Instantiates a builder for GroundingChunkMaps. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a GroundingChunkMaps object.
-