public static class ContentModerationConfig.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ContentModerationConfig |
build() |
ContentModerationConfig.Builder |
copy(ContentModerationConfig model) |
ContentModerationConfig.Builder |
shouldEnableOnInput(Boolean shouldEnableOnInput)
A flag to enable or disable content moderation on input.
|
ContentModerationConfig.Builder |
shouldEnableOnOutput(Boolean shouldEnableOnOutput)
A flag to enable or disable content moderation on output.
|
public ContentModerationConfig.Builder shouldEnableOnInput(Boolean shouldEnableOnInput)
A flag to enable or disable content moderation on input.
shouldEnableOnInput
- the value to setpublic ContentModerationConfig.Builder shouldEnableOnOutput(Boolean shouldEnableOnOutput)
A flag to enable or disable content moderation on output.
shouldEnableOnOutput
- the value to setpublic ContentModerationConfig build()
public ContentModerationConfig.Builder copy(ContentModerationConfig model)
Copyright © 2016–2024. All rights reserved.