Package com.openai.models
Class Moderation.Builder
-
- All Implemented Interfaces:
public final class Moderation.Builder
-
-
Constructor Summary
Constructors Constructor Description Moderation.Builder()
-
Method Summary
Modifier and Type Method Description final Moderation.Buildercategories(Moderation.Categories categories)A list of the categories, and whether they are flagged or not. final Moderation.Buildercategories(JsonField<Moderation.Categories> categories)A list of the categories, and whether they are flagged or not. final Moderation.BuildercategoryAppliedInputTypes(Moderation.CategoryAppliedInputTypes categoryAppliedInputTypes)A list of the categories along with the input type(s) that the score applies to. final Moderation.BuildercategoryAppliedInputTypes(JsonField<Moderation.CategoryAppliedInputTypes> categoryAppliedInputTypes)A list of the categories along with the input type(s) that the score applies to. final Moderation.BuildercategoryScores(Moderation.CategoryScores categoryScores)A list of the categories along with their scores as predicted by model. final Moderation.BuildercategoryScores(JsonField<Moderation.CategoryScores> categoryScores)A list of the categories along with their scores as predicted by model. final Moderation.Builderflagged(Boolean flagged)Whether any of the below categories are flagged. final Moderation.Builderflagged(JsonField<Boolean> flagged)Whether any of the below categories are flagged. final Moderation.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final Moderation.BuilderputAdditionalProperty(String key, JsonValue value)final Moderation.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final Moderation.BuilderremoveAdditionalProperty(String key)final Moderation.BuilderremoveAllAdditionalProperties(Set<String> keys)final Moderationbuild()-
-
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()
-
-
-
-