Package com.google.genai.types
Class GroundingChunkMaps
-
- All Implemented Interfaces:
public abstract class GroundingChunkMaps extends JsonSerializable
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 Classes Modifier and Type Class Description public abstract classGroundingChunkMaps.BuilderBuilder for GroundingChunkMaps.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description GroundingChunkMaps()
-
Method Summary
Modifier and Type Method Description abstract Optional<GroundingChunkMapsPlaceAnswerSources>placeAnswerSources()The sources that were used to generate the place answer. abstract Optional<String>placeId()This Place's resource name, in `places/{place_id}` format. abstract Optional<String>text()The text of the place answer. abstract Optional<String>title()The title of the place. abstract Optional<String>uri()The URI of the place. abstract Optional<GroundingChunkMapsRoute>route()Output only. static GroundingChunkMaps.Builderbuilder()Instantiates a builder for GroundingChunkMaps. abstract GroundingChunkMaps.BuildertoBuilder()Creates a builder with the same values as this instance. static GroundingChunkMapsfromJson(String jsonString)Deserializes a JSON string to a GroundingChunkMaps object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
placeAnswerSources
abstract Optional<GroundingChunkMapsPlaceAnswerSources> 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
abstract Optional<String> 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.
-
route
abstract Optional<GroundingChunkMapsRoute> route()
Output only. Route information.
-
builder
static GroundingChunkMaps.Builder builder()
Instantiates a builder for GroundingChunkMaps.
-
toBuilder
abstract GroundingChunkMaps.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static GroundingChunkMaps fromJson(String jsonString)
Deserializes a JSON string to a GroundingChunkMaps object.
-
-
-
-