Uses of Class
com.google.genai.Client.Builder
Packages that use Client.Builder
-
Uses of Client.Builder in com.google.genai
Methods in com.google.genai that return Client.BuilderModifier and TypeMethodDescriptionSets the API key for Gemini API.static Client.Builder
Client.builder()
Returns aClient.Builder
forClient
.Client.Builder.clientOptions
(ClientOptions clientOptions) Sets theClientOptions
for the API client.Client.Builder.credentials
(com.google.auth.oauth2.GoogleCredentials credentials) Sets theGoogleCredentials
for Vertex AI APIs.Client.Builder.httpOptions
(HttpOptions httpOptions) Sets theHttpOptions
for the API client.Sets the location for Vertex AI APIs.Sets the project ID for Vertex AI APIs.Client.Builder.vertexAI
(boolean vertexAI) Sets whether to use Vertex AI APIs.