Package com.google.genai.types
Class GoogleMaps.Builder
-
- All Implemented Interfaces:
public abstract class GoogleMaps.BuilderBuilder for GoogleMaps.
-
-
Constructor Summary
Constructors Constructor Description GoogleMaps.Builder()
-
Method Summary
Modifier and Type Method Description abstract GoogleMaps.BuilderauthConfig(AuthConfig authConfig)Setter for authConfig. GoogleMaps.BuilderauthConfig(AuthConfig.Builder authConfigBuilder)Setter for authConfig builder. GoogleMaps.BuilderclearAuthConfig()Clears the value of authConfig field. abstract GoogleMaps.BuilderenableWidget(boolean enableWidget)Setter for enableWidget. GoogleMaps.BuilderclearEnableWidget()Clears the value of enableWidget field. abstract GoogleMapsbuild()-
-
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.
-
clearAuthConfig
@CanIgnoreReturnValue() GoogleMaps.Builder clearAuthConfig()
Clears the value of authConfig field.
-
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.
-
clearEnableWidget
@CanIgnoreReturnValue() GoogleMaps.Builder clearEnableWidget()
Clears the value of enableWidget field.
-
build
abstract GoogleMaps build()
-
-
-
-