Package com.google.genai.types
Class ProxyOptions
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ProxyOptions
Proxy configuration for the client.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProxyOptions.Builderbuilder()Instantiates a builder for ProxyOptions.static ProxyOptionsDeserializes a JSON string to a ProxyOptions object.host()Proxy server hostname or IP address.password()Password for proxy authentication.port()Proxy server port.abstract ProxyOptions.BuilderCreates a builder with the same values as this instance.type()Proxy type.username()Username for proxy authentication.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
ProxyOptions
public ProxyOptions()
-
-
Method Details
-
type
Proxy type. Defaults to HTTP if unspecified. -
host
Proxy server hostname or IP address. -
port
Proxy server port. -
username
Username for proxy authentication. If provided, `password` must also be specified. -
password
Password for proxy authentication. If provided, `username` must also be specified. -
builder
Instantiates a builder for ProxyOptions. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ProxyOptions object.
-