Package com.google.genai.types
Class ProxyOptions.Builder
-
- All Implemented Interfaces:
public abstract class ProxyOptions.BuilderBuilder for ProxyOptions.
-
-
Constructor Summary
Constructors Constructor Description ProxyOptions.Builder()
-
Method Summary
Modifier and Type Method Description abstract ProxyOptions.Buildertype(ProxyType type)Setter for type. ProxyOptions.BuilderclearType()Clears the value of type field. ProxyOptions.Buildertype(ProxyType.Known knownType)Setter for type given a known enum. ProxyOptions.Buildertype(String type)Setter for type given a string. abstract ProxyOptions.Builderhost(String host)Setter for host. ProxyOptions.BuilderclearHost()Clears the value of host field. abstract ProxyOptions.Builderport(Integer port)Setter for port. ProxyOptions.BuilderclearPort()Clears the value of port field. abstract ProxyOptions.Builderusername(String username)Setter for username. ProxyOptions.BuilderclearUsername()Clears the value of username field. abstract ProxyOptions.Builderpassword(String password)Setter for password. ProxyOptions.BuilderclearPassword()Clears the value of password field. abstract ProxyOptionsbuild()-
-
Method Detail
-
type
abstract ProxyOptions.Builder type(ProxyType type)
Setter for type.
type: Proxy type. Defaults to HTTP if unspecified.
-
clearType
@CanIgnoreReturnValue() ProxyOptions.Builder clearType()
Clears the value of type field.
-
type
@CanIgnoreReturnValue() ProxyOptions.Builder type(ProxyType.Known knownType)
Setter for type given a known enum.
type: Proxy type. Defaults to HTTP if unspecified.
-
type
@CanIgnoreReturnValue() ProxyOptions.Builder type(String type)
Setter for type given a string.
type: Proxy type. Defaults to HTTP if unspecified.
-
host
abstract ProxyOptions.Builder host(String host)
Setter for host.
host: Proxy server hostname or IP address.
-
clearHost
@CanIgnoreReturnValue() ProxyOptions.Builder clearHost()
Clears the value of host field.
-
port
abstract ProxyOptions.Builder port(Integer port)
Setter for port.
port: Proxy server port.
-
clearPort
@CanIgnoreReturnValue() ProxyOptions.Builder clearPort()
Clears the value of port field.
-
username
abstract ProxyOptions.Builder username(String username)
Setter for username.
username: Username for proxy authentication. If provided, `password` must also be specified.
-
clearUsername
@CanIgnoreReturnValue() ProxyOptions.Builder clearUsername()
Clears the value of username field.
-
password
abstract ProxyOptions.Builder password(String password)
Setter for password.
password: Password for proxy authentication. If provided, `username` must also be specified.
-
clearPassword
@CanIgnoreReturnValue() ProxyOptions.Builder clearPassword()
Clears the value of password field.
-
build
abstract ProxyOptions build()
-
-
-
-