Class GoogleMaps.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • authConfig

      public abstract GoogleMaps.Builder authConfig(AuthConfig authConfig)
      Setter for authConfig.

      authConfig: The authentication config to access the API. Only API key is supported. This field is not supported in Gemini API.

    • authConfig

      @CanIgnoreReturnValue public GoogleMaps.Builder authConfig(AuthConfig.Builder authConfigBuilder)
      Setter for authConfig builder.

      authConfig: The authentication config to access the API. Only API key is supported. This field is not supported in Gemini API.

    • clearAuthConfig

      @CanIgnoreReturnValue public GoogleMaps.Builder clearAuthConfig()
      Clears the value of authConfig field.
    • enableWidget

      public abstract GoogleMaps.Builder enableWidget(boolean enableWidget)
      Setter for enableWidget.

      enableWidget: Deprecated. The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and no longer has any effect once removed. Optional. Whether to return a widget context token in the GroundingMetadata of the response.

    • clearEnableWidget

      @CanIgnoreReturnValue public GoogleMaps.Builder clearEnableWidget()
      Clears the value of enableWidget field.
    • groundingTypes

      public abstract GoogleMaps.Builder groundingTypes(GoogleMapsGroundingTypes groundingTypes)
      Setter for groundingTypes.

      groundingTypes: Optional. Specifies the types of Google Maps grounding to enable. This field is not supported in Gemini API.

    • groundingTypes

      @CanIgnoreReturnValue public GoogleMaps.Builder groundingTypes(GoogleMapsGroundingTypes.Builder groundingTypesBuilder)
      Setter for groundingTypes builder.

      groundingTypes: Optional. Specifies the types of Google Maps grounding to enable. This field is not supported in Gemini API.

    • clearGroundingTypes

      @CanIgnoreReturnValue public GoogleMaps.Builder clearGroundingTypes()
      Clears the value of groundingTypes field.
    • build

      public abstract GoogleMaps build()