Class GoogleMapsGroundingTypes.Builder

java.lang.Object
com.google.genai.types.GoogleMapsGroundingTypes.Builder
Enclosing class:
GoogleMapsGroundingTypes

public abstract static class GoogleMapsGroundingTypes.Builder extends Object
Builder for GoogleMapsGroundingTypes.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • places

      public abstract GoogleMapsGroundingTypes.Builder places(GoogleMapsPlaces places)
      Setter for places.

      places: Optional. Enables grounding with Google Maps Places. This is the default grounding type when no `GroundingTypes` are specified.

    • places

      @CanIgnoreReturnValue public GoogleMapsGroundingTypes.Builder places(GoogleMapsPlaces.Builder placesBuilder)
      Setter for places builder.

      places: Optional. Enables grounding with Google Maps Places. This is the default grounding type when no `GroundingTypes` are specified.

    • clearPlaces

      @CanIgnoreReturnValue public GoogleMapsGroundingTypes.Builder clearPlaces()
      Clears the value of places field.
    • routing

      public abstract GoogleMapsGroundingTypes.Builder routing(GoogleMapsRouting routing)
      Setter for routing.

      routing: Optional. Enables grounding with Google Maps Routing APIs (ComputeRoutes and SearchAlongRoute). Also enabled by default for Gemini 4 and later models when no `GroundingTypes` are specified.

    • routing

      @CanIgnoreReturnValue public GoogleMapsGroundingTypes.Builder routing(GoogleMapsRouting.Builder routingBuilder)
      Setter for routing builder.

      routing: Optional. Enables grounding with Google Maps Routing APIs (ComputeRoutes and SearchAlongRoute). Also enabled by default for Gemini 4 and later models when no `GroundingTypes` are specified.

    • clearRouting

      @CanIgnoreReturnValue public GoogleMapsGroundingTypes.Builder clearRouting()
      Clears the value of routing field.
    • build

      public abstract GoogleMapsGroundingTypes build()