Package com.google.genai.types
Class ProxyOptions
-
- All Implemented Interfaces:
public abstract class ProxyOptions extends JsonSerializable
Proxy configuration for the client.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classProxyOptions.BuilderBuilder for ProxyOptions.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description ProxyOptions()
-
Method Summary
Modifier and Type Method Description abstract Optional<ProxyType>type()Proxy type. abstract Optional<String>host()Proxy server hostname or IP address. abstract Optional<Integer>port()Proxy server port. abstract Optional<String>username()Username for proxy authentication. abstract Optional<String>password()Password for proxy authentication. static ProxyOptions.Builderbuilder()Instantiates a builder for ProxyOptions. abstract ProxyOptions.BuildertoBuilder()Creates a builder with the same values as this instance. static ProxyOptionsfromJson(String jsonString)Deserializes a JSON string to a ProxyOptions 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
-
-
Method Detail
-
username
abstract Optional<String> username()
Username for proxy authentication. If provided, `password` must also be specified.
-
password
abstract Optional<String> password()
Password for proxy authentication. If provided, `username` must also be specified.
-
builder
static ProxyOptions.Builder builder()
Instantiates a builder for ProxyOptions.
-
toBuilder
abstract ProxyOptions.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static ProxyOptions fromJson(String jsonString)
Deserializes a JSON string to a ProxyOptions object.
-
-
-
-