Class GoogleMaps

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.GoogleMaps

public abstract class GoogleMaps extends JsonSerializable
Tool to retrieve public maps data for grounding, powered by Google.
  • Constructor Details

    • GoogleMaps

      public GoogleMaps()
  • Method Details

    • authConfig

      public abstract Optional<AuthConfig> authConfig()
      The authentication config to access the API. Only API key is supported. This field is not supported in Gemini API.
    • enableWidget

      public abstract Optional<Boolean> enableWidget()
      Optional. If true, include the widget context token in the response.
    • builder

      public static GoogleMaps.Builder builder()
      Instantiates a builder for GoogleMaps.
    • toBuilder

      public abstract GoogleMaps.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static GoogleMaps fromJson(String jsonString)
      Deserializes a JSON string to a GoogleMaps object.