Class Moderation.Categories.Builder
-
- All Implemented Interfaces:
public final class Moderation.Categories.Builder
A builder for Categories.
-
-
Method Summary
Modifier and Type Method Description final Moderation.Categories.Builder
harassment(Boolean harassment)
Content that expresses, incites, or promotes harassing language towards any target. final Moderation.Categories.Builder
harassment(JsonField<Boolean> harassment)
Content that expresses, incites, or promotes harassing language towards any target. final Moderation.Categories.Builder
harassmentThreatening(Boolean harassmentThreatening)
Harassment content that also includes violence or serious harm towards any target. final Moderation.Categories.Builder
harassmentThreatening(JsonField<Boolean> harassmentThreatening)
Harassment content that also includes violence or serious harm towards any target. final Moderation.Categories.Builder
hate(Boolean hate)
Content that expresses, incites, or promotes hate based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste. final Moderation.Categories.Builder
hate(JsonField<Boolean> hate)
Content that expresses, incites, or promotes hate based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste. final Moderation.Categories.Builder
hateThreatening(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 Moderation.Categories.Builder
hateThreatening(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 Moderation.Categories.Builder
illicit(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 Moderation.Categories.Builder
illicit(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 Moderation.Categories.Builder
illicit(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 Moderation.Categories.Builder
illicit(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 Moderation.Categories.Builder
illicitViolent(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 Moderation.Categories.Builder
illicitViolent(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 Moderation.Categories.Builder
illicitViolent(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 Moderation.Categories.Builder
illicitViolent(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 Moderation.Categories.Builder
selfHarm(Boolean selfHarm)
Content that promotes, encourages, or depicts acts of self-harm, such as suicide, cutting, and eating disorders. final Moderation.Categories.Builder
selfHarm(JsonField<Boolean> selfHarm)
Content that promotes, encourages, or depicts acts of self-harm, such as suicide, cutting, and eating disorders. final Moderation.Categories.Builder
selfHarmInstructions(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 Moderation.Categories.Builder
selfHarmInstructions(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 Moderation.Categories.Builder
selfHarmIntent(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 Moderation.Categories.Builder
selfHarmIntent(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 Moderation.Categories.Builder
sexual(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 Moderation.Categories.Builder
sexual(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 Moderation.Categories.Builder
sexualMinors(Boolean sexualMinors)
Sexual content that includes an individual who is under 18 years old. final Moderation.Categories.Builder
sexualMinors(JsonField<Boolean> sexualMinors)
Sexual content that includes an individual who is under 18 years old. final Moderation.Categories.Builder
violence(Boolean violence)
Content that depicts death, violence, or physical injury. final Moderation.Categories.Builder
violence(JsonField<Boolean> violence)
Content that depicts death, violence, or physical injury. final Moderation.Categories.Builder
violenceGraphic(Boolean violenceGraphic)
Content that depicts death, violence, or physical injury in graphic detail. final Moderation.Categories.Builder
violenceGraphic(JsonField<Boolean> violenceGraphic)
Content that depicts death, violence, or physical injury in graphic detail. final Moderation.Categories.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final Moderation.Categories.Builder
putAdditionalProperty(String key, JsonValue value)
final Moderation.Categories.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final Moderation.Categories.Builder
removeAdditionalProperty(String key)
final Moderation.Categories.Builder
removeAllAdditionalProperties(Set<String> keys)
final Moderation.Categories
build()
-
-
Method Detail
-
harassment
final Moderation.Categories.Builder harassment(Boolean harassment)
Content that expresses, incites, or promotes harassing language towards any target.
-
harassment
final Moderation.Categories.Builder harassment(JsonField<Boolean> harassment)
Content that expresses, incites, or promotes harassing language towards any target.
-
harassmentThreatening
final Moderation.Categories.Builder harassmentThreatening(Boolean harassmentThreatening)
Harassment content that also includes violence or serious harm towards any target.
-
harassmentThreatening
final Moderation.Categories.Builder harassmentThreatening(JsonField<Boolean> harassmentThreatening)
Harassment content that also includes violence or serious harm towards any target.
-
hate
final Moderation.Categories.Builder hate(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.
-
hate
final Moderation.Categories.Builder hate(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 Moderation.Categories.Builder hateThreatening(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.
-
hateThreatening
final Moderation.Categories.Builder hateThreatening(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 Moderation.Categories.Builder illicit(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.
-
illicit
final Moderation.Categories.Builder illicit(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.
-
illicit
final Moderation.Categories.Builder illicit(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.
-
illicit
final Moderation.Categories.Builder illicit(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 Moderation.Categories.Builder illicitViolent(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.
-
illicitViolent
final Moderation.Categories.Builder illicitViolent(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.
-
illicitViolent
final Moderation.Categories.Builder illicitViolent(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.
-
illicitViolent
final Moderation.Categories.Builder illicitViolent(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 Moderation.Categories.Builder selfHarm(Boolean selfHarm)
Content that promotes, encourages, or depicts acts of self-harm, such as suicide, cutting, and eating disorders.
-
selfHarm
final Moderation.Categories.Builder selfHarm(JsonField<Boolean> selfHarm)
Content that promotes, encourages, or depicts acts of self-harm, such as suicide, cutting, and eating disorders.
-
selfHarmInstructions
final Moderation.Categories.Builder selfHarmInstructions(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.
-
selfHarmInstructions
final Moderation.Categories.Builder selfHarmInstructions(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 Moderation.Categories.Builder selfHarmIntent(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.
-
selfHarmIntent
final Moderation.Categories.Builder selfHarmIntent(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 Moderation.Categories.Builder sexual(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).
-
sexual
final Moderation.Categories.Builder sexual(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 Moderation.Categories.Builder sexualMinors(Boolean sexualMinors)
Sexual content that includes an individual who is under 18 years old.
-
sexualMinors
final Moderation.Categories.Builder sexualMinors(JsonField<Boolean> sexualMinors)
Sexual content that includes an individual who is under 18 years old.
-
violence
final Moderation.Categories.Builder violence(Boolean violence)
Content that depicts death, violence, or physical injury.
-
violence
final Moderation.Categories.Builder violence(JsonField<Boolean> violence)
Content that depicts death, violence, or physical injury.
-
violenceGraphic
final Moderation.Categories.Builder violenceGraphic(Boolean violenceGraphic)
Content that depicts death, violence, or physical injury in graphic detail.
-
violenceGraphic
final Moderation.Categories.Builder violenceGraphic(JsonField<Boolean> violenceGraphic)
Content that depicts death, violence, or physical injury in graphic detail.
-
additionalProperties
final Moderation.Categories.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Moderation.Categories.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Moderation.Categories.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Moderation.Categories.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Moderation.Categories.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final Moderation.Categories build()
-
-
-
-