Class Moderation.Categories
-
- All Implemented Interfaces:
public final class Moderation.Categories
A list of the categories, and whether they are flagged or not.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
Moderation.Categories.Builder
A builder for Categories.
-
Method Summary
Modifier and Type Method Description final Boolean
harassment()
Content that expresses, incites, or promotes harassing language towards any target. final Boolean
harassmentThreatening()
Harassment content that also includes violence or serious harm towards any target. final Boolean
hate()
Content that expresses, incites, or promotes hate based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste. 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. final 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 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 Boolean
selfHarm()
Content that promotes, encourages, or depicts acts of self-harm, such as suicide, cutting, and eating disorders. 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. 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. 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). final Boolean
sexualMinors()
Sexual content that includes an individual who is under 18 years old. final Boolean
violence()
Content that depicts death, violence, or physical injury. final Boolean
violenceGraphic()
Content that depicts death, violence, or physical injury in graphic detail. final JsonField<Boolean>
_harassment()
Content that expresses, incites, or promotes harassing language towards any target. final JsonField<Boolean>
_harassmentThreatening()
Harassment content that also includes violence or serious harm towards any target. final JsonField<Boolean>
_hate()
Content that expresses, incites, or promotes hate based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste. final JsonField<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. final JsonField<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 JsonField<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 JsonField<Boolean>
_selfHarm()
Content that promotes, encourages, or depicts acts of self-harm, such as suicide, cutting, and eating disorders. final JsonField<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. final JsonField<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. final JsonField<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). final JsonField<Boolean>
_sexualMinors()
Sexual content that includes an individual who is under 18 years old. final JsonField<Boolean>
_violence()
Content that depicts death, violence, or physical injury. final JsonField<Boolean>
_violenceGraphic()
Content that depicts death, violence, or physical injury in graphic detail. final Map<String, JsonValue>
_additionalProperties()
final Moderation.Categories
validate()
final Moderation.Categories.Builder
toBuilder()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static Moderation.Categories.Builder
builder()
-
-
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 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 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()
Content that expresses, incites, or promotes harassing language towards any target.
-
_harassmentThreatening
final JsonField<Boolean> _harassmentThreatening()
Harassment content that also includes violence or serious harm towards any target.
-
_hate
final JsonField<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 JsonField<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 JsonField<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 JsonField<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 JsonField<Boolean> _selfHarm()
Content that promotes, encourages, or depicts acts of self-harm, such as suicide, cutting, and eating disorders.
-
_selfHarmInstructions
final JsonField<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 JsonField<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 JsonField<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 JsonField<Boolean> _sexualMinors()
Sexual content that includes an individual who is under 18 years old.
-
_violence
final JsonField<Boolean> _violence()
Content that depicts death, violence, or physical injury.
-
_violenceGraphic
final JsonField<Boolean> _violenceGraphic()
Content that depicts death, violence, or physical injury in graphic detail.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final Moderation.Categories validate()
-
toBuilder
final Moderation.Categories.Builder toBuilder()
-
builder
final static Moderation.Categories.Builder builder()
-
-
-
-