Class ProxyOptions

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ProxyOptions

public abstract class ProxyOptions extends JsonSerializable
Proxy configuration for the client.
  • Constructor Details

    • ProxyOptions

      public ProxyOptions()
  • Method Details

    • type

      public abstract Optional<ProxyType> type()
      Proxy type. Defaults to HTTP if unspecified.
    • host

      public abstract Optional<String> host()
      Proxy server hostname or IP address.
    • port

      public abstract Optional<Integer> port()
      Proxy server port.
    • username

      public abstract Optional<String> username()
      Username for proxy authentication. If provided, `password` must also be specified.
    • password

      public abstract Optional<String> password()
      Password for proxy authentication. If provided, `username` must also be specified.
    • builder

      public static ProxyOptions.Builder builder()
      Instantiates a builder for ProxyOptions.
    • toBuilder

      public abstract ProxyOptions.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static ProxyOptions fromJson(String jsonString)
      Deserializes a JSON string to a ProxyOptions object.