Package com.google.genai.types
Class ClientOptions
-
- All Implemented Interfaces:
public abstract class ClientOptions extends JsonSerializable
Client options to be used in the client instantiation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classClientOptions.BuilderBuilder for ClientOptions.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description ClientOptions()
-
Method Summary
Modifier and Type Method Description abstract Optional<Integer>maxConnections()The maximum number of connections allowed in the pool. abstract Optional<Integer>maxConnectionsPerHost()The maximum number of connections allowed per host. abstract Optional<ProxyOptions>proxyOptions()Proxy configuration to be used in the client. static ClientOptions.Builderbuilder()Instantiates a builder for ClientOptions. abstract ClientOptions.BuildertoBuilder()Creates a builder with the same values as this instance. static ClientOptionsfromJson(String jsonString)Deserializes a JSON string to a ClientOptions object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
maxConnections
abstract Optional<Integer> maxConnections()
The maximum number of connections allowed in the pool.
-
maxConnectionsPerHost
abstract Optional<Integer> maxConnectionsPerHost()
The maximum number of connections allowed per host.
-
proxyOptions
abstract Optional<ProxyOptions> proxyOptions()
Proxy configuration to be used in the client.
-
builder
static ClientOptions.Builder builder()
Instantiates a builder for ClientOptions.
-
toBuilder
abstract ClientOptions.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static ClientOptions fromJson(String jsonString)
Deserializes a JSON string to a ClientOptions object.
-
-
-
-