Package com.google.genai
Class Client.Builder
java.lang.Object
com.google.genai.Client.Builder
- Enclosing class:
- Client
Builder for
Client
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the API key for Gemini API.build()
Builds theClient
instance.credentials
(com.google.auth.oauth2.GoogleCredentials credentials) Sets theGoogleCredentials
for Vertex AI APIs.httpOptions
(HttpOptions httpOptions) Sets theHttpOptions
for the API client.Sets the location for Vertex AI APIs.Sets the project ID for Vertex AI APIs.vertexAI
(boolean vertexAI) Sets whether to use Vertex AI APIs.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Builds theClient
instance. -
apiKey
Sets the API key for Gemini API. -
project
Sets the project ID for Vertex AI APIs. -
location
Sets the location for Vertex AI APIs. -
credentials
Sets theGoogleCredentials
for Vertex AI APIs. -
httpOptions
Sets theHttpOptions
for the API client. -
vertexAI
Sets whether to use Vertex AI APIs.
-