Class GoogleGenAIPluginOptions.Builder
java.lang.Object
com.google.genkit.plugins.googlegenai.GoogleGenAIPluginOptions.Builder
- Enclosing class:
GoogleGenAIPluginOptions
Builder for GoogleGenAIPluginOptions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the API key for Gemini Developer API.apiVersion(String apiVersion) Sets the API version.Sets the base URL override.build()Builds the GoogleGenAIPluginOptions.Sets the Google Cloud location for Vertex AI.Sets the Google Cloud project ID for Vertex AI.timeout(int timeout) Sets the request timeout in milliseconds.vertexAI(boolean vertexAI) Sets whether to use Vertex AI backend.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiKey
Sets the API key for Gemini Developer API.- Parameters:
apiKey- the API key- Returns:
- this builder
-
project
Sets the Google Cloud project ID for Vertex AI.- Parameters:
project- the project ID- Returns:
- this builder
-
location
Sets the Google Cloud location for Vertex AI.- Parameters:
location- the location- Returns:
- this builder
-
vertexAI
Sets whether to use Vertex AI backend.- Parameters:
vertexAI- true to use Vertex AI, false for Gemini Developer API- Returns:
- this builder
-
apiVersion
Sets the API version.- Parameters:
apiVersion- the API version (e.g., "v1", "v1beta")- Returns:
- this builder
-
baseUrl
Sets the base URL override.- Parameters:
baseUrl- the base URL- Returns:
- this builder
-
timeout
Sets the request timeout in milliseconds.- Parameters:
timeout- the timeout in milliseconds- Returns:
- this builder
-
build
Builds the GoogleGenAIPluginOptions.- Returns:
- the built options
-