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)
Sets Builder.harassment to an arbitrary JSON value. 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)
Sets Builder.harassmentThreatening to an arbitrary JSON value. 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)
Sets Builder.hate to an arbitrary JSON value. 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)
Sets Builder.hateThreatening to an arbitrary JSON value. 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)
Alias for Builder.illicit. final Moderation.Categories.Builder
illicit(Optional<Boolean> illicit)
Alias for calling Builder.illicit with illicit.orElse(null)
.final Moderation.Categories.Builder
illicit(JsonField<Boolean> illicit)
Sets Builder.illicit to an arbitrary JSON value. 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)
Alias for Builder.illicitViolent. final Moderation.Categories.Builder
illicitViolent(Optional<Boolean> illicitViolent)
Alias for calling Builder.illicitViolent with illicitViolent.orElse(null)
.final Moderation.Categories.Builder
illicitViolent(JsonField<Boolean> illicitViolent)
Sets Builder.illicitViolent to an arbitrary JSON value. 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)
Sets Builder.selfHarm to an arbitrary JSON value. 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)
Sets Builder.selfHarmInstructions to an arbitrary JSON value. 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)
Sets Builder.selfHarmIntent to an arbitrary JSON value. 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)
Sets Builder.sexual to an arbitrary JSON value. 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)
Sets Builder.sexualMinors to an arbitrary JSON value. final Moderation.Categories.Builder
violence(Boolean violence)
Content that depicts death, violence, or physical injury. final Moderation.Categories.Builder
violence(JsonField<Boolean> violence)
Sets Builder.violence to an arbitrary JSON value. 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)
Sets Builder.violenceGraphic to an arbitrary JSON value. 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()
Returns an immutable instance of Categories. -
-
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)
Sets Builder.harassment to an arbitrary JSON value.
You should usually call Builder.harassment with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
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)
Sets Builder.harassmentThreatening to an arbitrary JSON value.
You should usually call Builder.harassmentThreatening with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
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)
Sets Builder.hate to an arbitrary JSON value.
You should usually call Builder.hate with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
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)
Sets Builder.hateThreatening to an arbitrary JSON value.
You should usually call Builder.hateThreatening with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
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)
Alias for Builder.illicit.
This unboxed primitive overload exists for backwards compatibility.
-
illicit
final Moderation.Categories.Builder illicit(Optional<Boolean> illicit)
Alias for calling Builder.illicit with
illicit.orElse(null)
.
-
illicit
final Moderation.Categories.Builder illicit(JsonField<Boolean> illicit)
Sets Builder.illicit to an arbitrary JSON value.
You should usually call Builder.illicit with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
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)
Alias for Builder.illicitViolent.
This unboxed primitive overload exists for backwards compatibility.
-
illicitViolent
final Moderation.Categories.Builder illicitViolent(Optional<Boolean> illicitViolent)
Alias for calling Builder.illicitViolent with
illicitViolent.orElse(null)
.
-
illicitViolent
final Moderation.Categories.Builder illicitViolent(JsonField<Boolean> illicitViolent)
Sets Builder.illicitViolent to an arbitrary JSON value.
You should usually call Builder.illicitViolent with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
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)
Sets Builder.selfHarm to an arbitrary JSON value.
You should usually call Builder.selfHarm with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
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)
Sets Builder.selfHarmInstructions to an arbitrary JSON value.
You should usually call Builder.selfHarmInstructions with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
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)
Sets Builder.selfHarmIntent to an arbitrary JSON value.
You should usually call Builder.selfHarmIntent with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
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)
Sets Builder.sexual to an arbitrary JSON value.
You should usually call Builder.sexual with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
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)
Sets Builder.sexualMinors to an arbitrary JSON value.
You should usually call Builder.sexualMinors with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
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)
Sets Builder.violence to an arbitrary JSON value.
You should usually call Builder.violence with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
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)
Sets Builder.violenceGraphic to an arbitrary JSON value.
You should usually call Builder.violenceGraphic with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
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()
Returns an immutable instance of Categories.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.harassment() .harassmentThreatening() .hate() .hateThreatening() .illicit() .illicitViolent() .selfHarm() .selfHarmInstructions() .selfHarmIntent() .sexual() .sexualMinors() .violence() .violenceGraphic()
-
-
-
-