public static class GenerateContentConfig.BuilderBuilder class for GenerateContentConfig.
Methods
build()
public GenerateContentConfig build()Builds a GenerateContentConfig instance.
| Returns | |
|---|---|
| Type | Description |
GenerateContentConfig |
|
setGenerationConfig(GenerationConfig generationConfig)
public GenerateContentConfig.Builder setGenerationConfig(GenerationConfig generationConfig)Set com.google.cloud.vertexai.api.GenerationConfig that will be used in the generate content API call.
| Parameter | |
|---|---|
| Name | Description |
generationConfig |
GenerationConfig |
| Returns | |
|---|---|
| Type | Description |
GenerateContentConfig.Builder |
builder for the GenerateContentConfig |
setSafetySettings(List<SafetySetting> safetySettings)
public GenerateContentConfig.Builder setSafetySettings(List<SafetySetting> safetySettings)Set a list of com.google.cloud.vertexai.api.SafetySetting that will be used in the generate content API call.
| Parameter | |
|---|---|
| Name | Description |
safetySettings |
List<SafetySetting> |
| Returns | |
|---|---|
| Type | Description |
GenerateContentConfig.Builder |
builder for the GenerateContentConfig |
setTools(List<Tool> tools)
public GenerateContentConfig.Builder setTools(List<Tool> tools)Set a list of com.google.cloud.vertexai.api.Tool that will be used in the generate content API call.
| Parameter | |
|---|---|
| Name | Description |
tools |
List<Tool> |
| Returns | |
|---|---|
| Type | Description |
GenerateContentConfig.Builder |
builder for the GenerateContentConfig |