Package com.google.genai.types
Class HttpOptions.Builder
java.lang.Object
com.google.genai.types.HttpOptions.Builder
- Enclosing class:
- HttpOptions
Builder for HttpOptions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract HttpOptions.BuilderapiVersion(String apiVersion) Setter for apiVersion.abstract HttpOptions.BuilderSetter for baseUrl.abstract HttpOptionsbuild()abstract HttpOptions.BuilderSetter for extraBody.abstract HttpOptions.BuilderSetter for headers.abstract HttpOptions.BuilderSetter for timeout.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
baseUrl
Setter for baseUrl.baseUrl: The base URL for the AI platform service endpoint.
-
apiVersion
Setter for apiVersion.apiVersion: Specifies the version of the API to use.
-
headers
Setter for headers.headers: Additional HTTP headers to be sent with the request.
-
timeout
Setter for timeout.timeout: Timeout for the request in milliseconds.
-
extraBody
Setter for extraBody.extraBody: Extra parameters to add to the request body. The structure must match the backend API's request structure. - VertexAI backend API docs: https://cloud.google.com/vertex-ai/docs/reference/rest - GeminiAPI backend API docs: https://ai.google.dev/api/rest
-
build
-