Class Moderation
-
- All Implemented Interfaces:
public final class Moderation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
Moderation.Builder
A builder for Moderation.
public final class
Moderation.Categories
A list of the categories, and whether they are flagged or not.
public final class
Moderation.CategoryAppliedInputTypes
A list of the categories along with the input type(s) that the score applies to.
public final class
Moderation.CategoryScores
A list of the categories along with their scores as predicted by model.
-
Method Summary
Modifier and Type Method Description final Moderation.Categories
categories()
A list of the categories, and whether they are flagged or not. final Moderation.CategoryAppliedInputTypes
categoryAppliedInputTypes()
A list of the categories along with the input type(s) that the score applies to. final Moderation.CategoryScores
categoryScores()
A list of the categories along with their scores as predicted by model. final Boolean
flagged()
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.Builder
toBuilder()
final Moderation
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static Moderation.Builder
builder()
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()
-
-
-
-