Class Moderation.Categories
-
- All Implemented Interfaces:
public final class Moderation.CategoriesA list of the categories, and whether they are flagged or not.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classModeration.Categories.BuilderA builder for Categories.
-
Method Summary
Modifier and Type Method Description final Booleanharassment()Content that expresses, incites, or promotes harassing language towards any target. final BooleanharassmentThreatening()Harassment content that also includes violence or serious harm towards any target. final Booleanhate()Content that expresses, incites, or promotes hate based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste. final BooleanhateThreatening()Hateful content that also includes violence or serious harm towards the targeted group based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste. final Optional<Boolean>illicit()Content that includes instructions or advice that facilitate the planning or execution of wrongdoing, or that gives advice or instruction on how to commit illicit acts. final Optional<Boolean>illicitViolent()Content that includes instructions or advice that facilitate the planning or execution of wrongdoing that also includes violence, or that gives advice or instruction on the procurement of any weapon. final BooleanselfHarm()Content that promotes, encourages, or depicts acts of self-harm, such as suicide, cutting, and eating disorders. final BooleanselfHarmInstructions()Content that encourages performing acts of self-harm, such as suicide, cutting, and eating disorders, or that gives instructions or advice on how to commit such acts. final BooleanselfHarmIntent()Content where the speaker expresses that they are engaging or intend to engage in acts of self-harm, such as suicide, cutting, and eating disorders. final Booleansexual()Content meant to arouse sexual excitement, such as the description of sexual activity, or that promotes sexual services (excluding sex education and wellness). final BooleansexualMinors()Sexual content that includes an individual who is under 18 years old. final Booleanviolence()Content that depicts death, violence, or physical injury. final BooleanviolenceGraphic()Content that depicts death, violence, or physical injury in graphic detail. final JsonField<Boolean>_harassment()Returns the raw JSON value of harassment. final JsonField<Boolean>_harassmentThreatening()Returns the raw JSON value of harassmentThreatening. final JsonField<Boolean>_hate()Returns the raw JSON value of hate. final JsonField<Boolean>_hateThreatening()Returns the raw JSON value of hateThreatening. final JsonField<Boolean>_illicit()Returns the raw JSON value of illicit. final JsonField<Boolean>_illicitViolent()Returns the raw JSON value of illicitViolent. final JsonField<Boolean>_selfHarm()Returns the raw JSON value of selfHarm. final JsonField<Boolean>_selfHarmInstructions()Returns the raw JSON value of selfHarmInstructions. final JsonField<Boolean>_selfHarmIntent()Returns the raw JSON value of selfHarmIntent. final JsonField<Boolean>_sexual()Returns the raw JSON value of sexual. final JsonField<Boolean>_sexualMinors()Returns the raw JSON value of sexualMinors. final JsonField<Boolean>_violence()Returns the raw JSON value of violence. final JsonField<Boolean>_violenceGraphic()Returns the raw JSON value of violenceGraphic. final Map<String, JsonValue>_additionalProperties()final Moderation.Categories.BuildertoBuilder()final Moderation.Categoriesvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Moderation.Categories.Builderbuilder()Returns a mutable builder for constructing an instance of Categories. -
-
Method Detail
-
harassment
final Boolean harassment()
Content that expresses, incites, or promotes harassing language towards any target.
-
harassmentThreatening
final Boolean harassmentThreatening()
Harassment content that also includes violence or serious harm towards any target.
-
hate
final Boolean hate()
Content that expresses, incites, or promotes hate based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste. Hateful content aimed at non-protected groups (e.g., chess players) is harassment.
-
hateThreatening
final Boolean hateThreatening()
Hateful content that also includes violence or serious harm towards the targeted group based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste.
-
illicit
final Optional<Boolean> illicit()
Content that includes instructions or advice that facilitate the planning or execution of wrongdoing, or that gives advice or instruction on how to commit illicit acts. For example, "how to shoplift" would fit this category.
-
illicitViolent
final Optional<Boolean> illicitViolent()
Content that includes instructions or advice that facilitate the planning or execution of wrongdoing that also includes violence, or that gives advice or instruction on the procurement of any weapon.
-
selfHarm
final Boolean selfHarm()
Content that promotes, encourages, or depicts acts of self-harm, such as suicide, cutting, and eating disorders.
-
selfHarmInstructions
final Boolean selfHarmInstructions()
Content that encourages performing acts of self-harm, such as suicide, cutting, and eating disorders, or that gives instructions or advice on how to commit such acts.
-
selfHarmIntent
final Boolean selfHarmIntent()
Content where the speaker expresses that they are engaging or intend to engage in acts of self-harm, such as suicide, cutting, and eating disorders.
-
sexual
final Boolean sexual()
Content meant to arouse sexual excitement, such as the description of sexual activity, or that promotes sexual services (excluding sex education and wellness).
-
sexualMinors
final Boolean sexualMinors()
Sexual content that includes an individual who is under 18 years old.
-
violenceGraphic
final Boolean violenceGraphic()
Content that depicts death, violence, or physical injury in graphic detail.
-
_harassment
final JsonField<Boolean> _harassment()
Returns the raw JSON value of harassment.
Unlike harassment, this method doesn't throw if the JSON field has an unexpected type.
-
_harassmentThreatening
final JsonField<Boolean> _harassmentThreatening()
Returns the raw JSON value of harassmentThreatening.
Unlike harassmentThreatening, this method doesn't throw if the JSON field has an unexpected type.
-
_hate
final JsonField<Boolean> _hate()
Returns the raw JSON value of hate.
Unlike hate, this method doesn't throw if the JSON field has an unexpected type.
-
_hateThreatening
final JsonField<Boolean> _hateThreatening()
Returns the raw JSON value of hateThreatening.
Unlike hateThreatening, this method doesn't throw if the JSON field has an unexpected type.
-
_illicit
final JsonField<Boolean> _illicit()
Returns the raw JSON value of illicit.
Unlike illicit, this method doesn't throw if the JSON field has an unexpected type.
-
_illicitViolent
final JsonField<Boolean> _illicitViolent()
Returns the raw JSON value of illicitViolent.
Unlike illicitViolent, this method doesn't throw if the JSON field has an unexpected type.
-
_selfHarm
final JsonField<Boolean> _selfHarm()
Returns the raw JSON value of selfHarm.
Unlike selfHarm, this method doesn't throw if the JSON field has an unexpected type.
-
_selfHarmInstructions
final JsonField<Boolean> _selfHarmInstructions()
Returns the raw JSON value of selfHarmInstructions.
Unlike selfHarmInstructions, this method doesn't throw if the JSON field has an unexpected type.
-
_selfHarmIntent
final JsonField<Boolean> _selfHarmIntent()
Returns the raw JSON value of selfHarmIntent.
Unlike selfHarmIntent, this method doesn't throw if the JSON field has an unexpected type.
-
_sexual
final JsonField<Boolean> _sexual()
Returns the raw JSON value of sexual.
Unlike sexual, this method doesn't throw if the JSON field has an unexpected type.
-
_sexualMinors
final JsonField<Boolean> _sexualMinors()
Returns the raw JSON value of sexualMinors.
Unlike sexualMinors, this method doesn't throw if the JSON field has an unexpected type.
-
_violence
final JsonField<Boolean> _violence()
Returns the raw JSON value of violence.
Unlike violence, this method doesn't throw if the JSON field has an unexpected type.
-
_violenceGraphic
final JsonField<Boolean> _violenceGraphic()
Returns the raw JSON value of violenceGraphic.
Unlike violenceGraphic, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final Moderation.Categories.Builder toBuilder()
-
validate
final Moderation.Categories validate()
-
builder
final static Moderation.Categories.Builder builder()
Returns a mutable builder for constructing an instance of Categories.
The following fields are required:
.harassment() .harassmentThreatening() .hate() .hateThreatening() .illicit() .illicitViolent() .selfHarm() .selfHarmInstructions() .selfHarmIntent() .sexual() .sexualMinors() .violence() .violenceGraphic()
-
-
-
-