Class GoogleMaps.Builder

  • All Implemented Interfaces:

    
    public abstract class GoogleMaps.Builder
    
                        

    Builder for GoogleMaps.

    • Constructor Detail

      • GoogleMaps.Builder

        GoogleMaps.Builder()
    • Method Detail

      • authConfig

         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() 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.

      • enableWidget

         abstract GoogleMaps.Builder enableWidget(boolean enableWidget)

        Setter for enableWidget.

        enableWidget: Optional. Whether to return a widget context token in the GroundingMetadata of the response. Developers can use the widget context token to render a Google Maps widget with geospatial context related to the places that the model references in the response.