Package com.google.genai.types
Class ClientOptions.Builder
java.lang.Object
com.google.genai.types.ClientOptions.Builder
- Enclosing class:
- ClientOptions
Builder for ClientOptions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ClientOptionsbuild()Clears the value of customHttpClient field.Clears the value of maxConnections field.Clears the value of maxConnectionsPerHost field.Clears the value of proxyOptions field.abstract ClientOptions.BuildercustomHttpClient(okhttp3.OkHttpClient customHttpClient) Setter for customHttpClient.abstract ClientOptions.BuildermaxConnections(Integer maxConnections) Setter for maxConnections.abstract ClientOptions.BuildermaxConnectionsPerHost(Integer maxConnectionsPerHost) Setter for maxConnectionsPerHost.abstract ClientOptions.BuilderproxyOptions(ProxyOptions proxyOptions) Setter for proxyOptions.proxyOptions(ProxyOptions.Builder proxyOptionsBuilder) Setter for proxyOptions builder.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxConnections
Setter for maxConnections.maxConnections: The maximum number of connections allowed in the pool.
-
clearMaxConnections
Clears the value of maxConnections field. -
maxConnectionsPerHost
Setter for maxConnectionsPerHost.maxConnectionsPerHost: The maximum number of connections allowed per host.
-
clearMaxConnectionsPerHost
Clears the value of maxConnectionsPerHost field. -
proxyOptions
Setter for proxyOptions.proxyOptions: Proxy configuration to be used in the client.
-
proxyOptions
@CanIgnoreReturnValue public ClientOptions.Builder proxyOptions(ProxyOptions.Builder proxyOptionsBuilder) Setter for proxyOptions builder.proxyOptions: Proxy configuration to be used in the client.
-
clearProxyOptions
Clears the value of proxyOptions field. -
customHttpClient
Setter for customHttpClient.customHttpClient: A customized HTTP client instance to use for the SDK.
-
clearCustomHttpClient
Clears the value of customHttpClient field. -
build
-