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 class ClientOptions.Builder

      Builder for ClientOptions.

    • Constructor Summary

      Constructors 
      Constructor Description
      ClientOptions()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.Builder builder() Instantiates a builder for ClientOptions.
      abstract ClientOptions.Builder toBuilder() Creates a builder with the same values as this instance.
      static ClientOptions fromJson(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