Package com.google.genai.types
Class GoogleMapsGroundingTypes
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.GoogleMapsGroundingTypes
Defines the types of Google Maps grounding that can be enabled and their configurations. This
data type is not supported in Gemini API.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for GoogleMapsGroundingTypes. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Instantiates a builder for GoogleMapsGroundingTypes.static GoogleMapsGroundingTypesDeserializes a JSON string to a GoogleMapsGroundingTypes object.abstract Optional<GoogleMapsPlaces>places()Optional.abstract Optional<GoogleMapsRouting>routing()Optional.abstract GoogleMapsGroundingTypes.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
GoogleMapsGroundingTypes
public GoogleMapsGroundingTypes()
-
-
Method Details
-
places
Optional. Enables grounding with Google Maps Places. This is the default grounding type when no `GroundingTypes` are specified. -
routing
Optional. Enables grounding with Google Maps Routing APIs (ComputeRoutes and SearchAlongRoute). -
builder
Instantiates a builder for GoogleMapsGroundingTypes. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a GoogleMapsGroundingTypes object.
-