Class Moderation
-
- All Implemented Interfaces:
public final class Moderation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classModeration.BuilderA builder for Moderation.
public final classModeration.CategoriesA list of the categories, and whether they are flagged or not.
public final classModeration.CategoryAppliedInputTypesA list of the categories along with the input type(s) that the score applies to.
public final classModeration.CategoryScoresA list of the categories along with their scores as predicted by model.
-
Method Summary
Modifier and Type Method Description final Moderation.Categoriescategories()A list of the categories, and whether they are flagged or not. final Moderation.CategoryAppliedInputTypescategoryAppliedInputTypes()A list of the categories along with the input type(s) that the score applies to. final Moderation.CategoryScorescategoryScores()A list of the categories along with their scores as predicted by model. final Booleanflagged()Whether any of the below categories are flagged. final JsonField<Moderation.Categories>_categories()Returns the raw JSON value of categories. final JsonField<Moderation.CategoryAppliedInputTypes>_categoryAppliedInputTypes()Returns the raw JSON value of categoryAppliedInputTypes. final JsonField<Moderation.CategoryScores>_categoryScores()Returns the raw JSON value of categoryScores. final JsonField<Boolean>_flagged()Returns the raw JSON value of flagged. final Map<String, JsonValue>_additionalProperties()final Moderation.BuildertoBuilder()final Moderationvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Moderation.Builderbuilder()Returns a mutable builder for constructing an instance of Moderation. -
-
Method Detail
-
categories
final Moderation.Categories categories()
A list of the categories, and whether they are flagged or not.
-
categoryAppliedInputTypes
final Moderation.CategoryAppliedInputTypes categoryAppliedInputTypes()
A list of the categories along with the input type(s) that the score applies to.
-
categoryScores
final Moderation.CategoryScores categoryScores()
A list of the categories along with their scores as predicted by model.
-
_categories
final JsonField<Moderation.Categories> _categories()
Returns the raw JSON value of categories.
Unlike categories, this method doesn't throw if the JSON field has an unexpected type.
-
_categoryAppliedInputTypes
final JsonField<Moderation.CategoryAppliedInputTypes> _categoryAppliedInputTypes()
Returns the raw JSON value of categoryAppliedInputTypes.
Unlike categoryAppliedInputTypes, this method doesn't throw if the JSON field has an unexpected type.
-
_categoryScores
final JsonField<Moderation.CategoryScores> _categoryScores()
Returns the raw JSON value of categoryScores.
Unlike categoryScores, this method doesn't throw if the JSON field has an unexpected type.
-
_flagged
final JsonField<Boolean> _flagged()
Returns the raw JSON value of flagged.
Unlike flagged, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final Moderation.Builder toBuilder()
-
validate
final Moderation validate()
-
builder
final static Moderation.Builder builder()
Returns a mutable builder for constructing an instance of Moderation.
The following fields are required:
.categories() .categoryAppliedInputTypes() .categoryScores() .flagged()
-
-
-
-