Package com.openai.models
Class Moderation.Builder
-
- All Implemented Interfaces:
public final class Moderation.Builder
A builder for Moderation.
-
-
Method Summary
Modifier and Type Method Description final Moderation.Builder
categories(Moderation.Categories categories)
A list of the categories, and whether they are flagged or not. final Moderation.Builder
categories(JsonField<Moderation.Categories> categories)
A list of the categories, and whether they are flagged or not. final Moderation.Builder
categoryAppliedInputTypes(Moderation.CategoryAppliedInputTypes categoryAppliedInputTypes)
A list of the categories along with the input type(s) that the score applies to. final Moderation.Builder
categoryAppliedInputTypes(JsonField<Moderation.CategoryAppliedInputTypes> categoryAppliedInputTypes)
A list of the categories along with the input type(s) that the score applies to. final Moderation.Builder
categoryScores(Moderation.CategoryScores categoryScores)
A list of the categories along with their scores as predicted by model. final Moderation.Builder
categoryScores(JsonField<Moderation.CategoryScores> categoryScores)
A list of the categories along with their scores as predicted by model. final Moderation.Builder
flagged(Boolean flagged)
Whether any of the below categories are flagged. final Moderation.Builder
flagged(JsonField<Boolean> flagged)
Whether any of the below categories are flagged. final Moderation.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final Moderation.Builder
putAdditionalProperty(String key, JsonValue value)
final Moderation.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final Moderation.Builder
removeAdditionalProperty(String key)
final Moderation.Builder
removeAllAdditionalProperties(Set<String> keys)
final Moderation
build()
-
-
Method Detail
-
categories
final Moderation.Builder categories(Moderation.Categories categories)
A list of the categories, and whether they are flagged or not.
-
categories
final Moderation.Builder categories(JsonField<Moderation.Categories> categories)
A list of the categories, and whether they are flagged or not.
-
categoryAppliedInputTypes
final Moderation.Builder categoryAppliedInputTypes(Moderation.CategoryAppliedInputTypes categoryAppliedInputTypes)
A list of the categories along with the input type(s) that the score applies to.
-
categoryAppliedInputTypes
final Moderation.Builder categoryAppliedInputTypes(JsonField<Moderation.CategoryAppliedInputTypes> categoryAppliedInputTypes)
A list of the categories along with the input type(s) that the score applies to.
-
categoryScores
final Moderation.Builder categoryScores(Moderation.CategoryScores categoryScores)
A list of the categories along with their scores as predicted by model.
-
categoryScores
final Moderation.Builder categoryScores(JsonField<Moderation.CategoryScores> categoryScores)
A list of the categories along with their scores as predicted by model.
-
flagged
final Moderation.Builder flagged(Boolean flagged)
Whether any of the below categories are flagged.
-
flagged
final Moderation.Builder flagged(JsonField<Boolean> flagged)
Whether any of the below categories are flagged.
-
additionalProperties
final Moderation.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Moderation.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Moderation.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Moderation.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Moderation.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final Moderation build()
-
-
-
-