Class ProxyOptions.Builder

java.lang.Object
com.google.genai.types.ProxyOptions.Builder
Enclosing class:
ProxyOptions

public abstract static class ProxyOptions.Builder extends Object
Builder for ProxyOptions.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • type

      public abstract ProxyOptions.Builder type(ProxyType type)
      Setter for type.

      type: Proxy type. Defaults to HTTP if unspecified.

    • clearType

      @CanIgnoreReturnValue public ProxyOptions.Builder clearType()
      Clears the value of type field.
    • type

      @CanIgnoreReturnValue public ProxyOptions.Builder type(ProxyType.Known knownType)
      Setter for type given a known enum.

      type: Proxy type. Defaults to HTTP if unspecified.

    • type

      @CanIgnoreReturnValue public ProxyOptions.Builder type(String type)
      Setter for type given a string.

      type: Proxy type. Defaults to HTTP if unspecified.

    • host

      public abstract ProxyOptions.Builder host(String host)
      Setter for host.

      host: Proxy server hostname or IP address.

    • clearHost

      @CanIgnoreReturnValue public ProxyOptions.Builder clearHost()
      Clears the value of host field.
    • port

      public abstract ProxyOptions.Builder port(Integer port)
      Setter for port.

      port: Proxy server port.

    • clearPort

      @CanIgnoreReturnValue public ProxyOptions.Builder clearPort()
      Clears the value of port field.
    • username

      public abstract ProxyOptions.Builder username(String username)
      Setter for username.

      username: Username for proxy authentication. If provided, `password` must also be specified.

    • clearUsername

      @CanIgnoreReturnValue public ProxyOptions.Builder clearUsername()
      Clears the value of username field.
    • password

      public abstract ProxyOptions.Builder password(String password)
      Setter for password.

      password: Password for proxy authentication. If provided, `username` must also be specified.

    • clearPassword

      @CanIgnoreReturnValue public ProxyOptions.Builder clearPassword()
      Clears the value of password field.
    • build

      public abstract ProxyOptions build()