Builder

public class Builder

Builder for Client.

Constructors

Link copied to clipboard
public void Client.Builder()

Functions

Link copied to clipboard
@CanIgnoreReturnValue()
public Client.Builder apiKey(String apiKey)
Sets the API key for Gemini API.
Link copied to clipboard
public Client build()
Builds the Client instance.
Link copied to clipboard
@CanIgnoreReturnValue()
public Client.Builder clientOptions(ClientOptions clientOptions)
Sets the ClientOptions for the API client.
Link copied to clipboard
@CanIgnoreReturnValue()
public Client.Builder credentials(GoogleCredentials credentials)
Sets the GoogleCredentials for Vertex AI APIs.
Link copied to clipboard
@CanIgnoreReturnValue()
public Client.Builder enterprise(boolean enterprise)
Sets whether to use Gemini Enterprise Agent Platform.
Link copied to clipboard
@CanIgnoreReturnValue()
public Client.Builder httpOptions(HttpOptions httpOptions)
Sets the HttpOptions for the API client.
Link copied to clipboard
@CanIgnoreReturnValue()
public Client.Builder location(String location)
Sets the location for Vertex AI APIs.
Link copied to clipboard
@CanIgnoreReturnValue()
public Client.Builder project(String project)
Sets the project ID for Vertex AI APIs.
Link copied to clipboard
@CanIgnoreReturnValue()
public Client.Builder vertexAI(boolean vertexAI)
Sets whether to use Vertex AI APIs.