Package com.google.genai.types
Class GoogleMaps
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.GoogleMaps
Tool to retrieve public maps data for grounding, powered by Google.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Optional<AuthConfig>The authentication config to access the API.static GoogleMaps.Builderbuilder()Instantiates a builder for GoogleMaps.Optional.static GoogleMapsDeserializes a JSON string to a GoogleMaps object.abstract GoogleMaps.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
setMaxReadLength, stringToJsonNode, toJson
-
Constructor Details
-
GoogleMaps
public GoogleMaps()
-
-
Method Details
-
authConfig
The authentication config to access the API. Only API key is supported. This field is not supported in Gemini API. -
enableWidget
Optional. If true, include the widget context token in the response. -
builder
Instantiates a builder for GoogleMaps. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a GoogleMaps object.
-