Class Moderation.CategoryScores.Builder
-
- All Implemented Interfaces:
public final class Moderation.CategoryScores.BuilderA builder for CategoryScores.
-
-
Method Summary
-
-
Method Detail
-
harassment
final Moderation.CategoryScores.Builder harassment(Double harassment)
The score for the category 'harassment'.
-
harassment
final Moderation.CategoryScores.Builder harassment(JsonField<Double> harassment)
Sets Builder.harassment to an arbitrary JSON value.
You should usually call Builder.harassment with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
harassmentThreatening
final Moderation.CategoryScores.Builder harassmentThreatening(Double harassmentThreatening)
The score for the category 'harassment/threatening'.
-
harassmentThreatening
final Moderation.CategoryScores.Builder harassmentThreatening(JsonField<Double> harassmentThreatening)
Sets Builder.harassmentThreatening to an arbitrary JSON value.
You should usually call Builder.harassmentThreatening with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
hate
final Moderation.CategoryScores.Builder hate(Double hate)
The score for the category 'hate'.
-
hate
final Moderation.CategoryScores.Builder hate(JsonField<Double> hate)
Sets Builder.hate to an arbitrary JSON value.
You should usually call Builder.hate with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
hateThreatening
final Moderation.CategoryScores.Builder hateThreatening(Double hateThreatening)
The score for the category 'hate/threatening'.
-
hateThreatening
final Moderation.CategoryScores.Builder hateThreatening(JsonField<Double> hateThreatening)
Sets Builder.hateThreatening to an arbitrary JSON value.
You should usually call Builder.hateThreatening with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
illicit
final Moderation.CategoryScores.Builder illicit(Double illicit)
The score for the category 'illicit'.
-
illicit
final Moderation.CategoryScores.Builder illicit(JsonField<Double> illicit)
Sets Builder.illicit to an arbitrary JSON value.
You should usually call Builder.illicit with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
illicitViolent
final Moderation.CategoryScores.Builder illicitViolent(Double illicitViolent)
The score for the category 'illicit/violent'.
-
illicitViolent
final Moderation.CategoryScores.Builder illicitViolent(JsonField<Double> illicitViolent)
Sets Builder.illicitViolent to an arbitrary JSON value.
You should usually call Builder.illicitViolent with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
selfHarm
final Moderation.CategoryScores.Builder selfHarm(Double selfHarm)
The score for the category 'self-harm'.
-
selfHarm
final Moderation.CategoryScores.Builder selfHarm(JsonField<Double> selfHarm)
Sets Builder.selfHarm to an arbitrary JSON value.
You should usually call Builder.selfHarm with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
selfHarmInstructions
final Moderation.CategoryScores.Builder selfHarmInstructions(Double selfHarmInstructions)
The score for the category 'self-harm/instructions'.
-
selfHarmInstructions
final Moderation.CategoryScores.Builder selfHarmInstructions(JsonField<Double> selfHarmInstructions)
Sets Builder.selfHarmInstructions to an arbitrary JSON value.
You should usually call Builder.selfHarmInstructions with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
selfHarmIntent
final Moderation.CategoryScores.Builder selfHarmIntent(Double selfHarmIntent)
The score for the category 'self-harm/intent'.
-
selfHarmIntent
final Moderation.CategoryScores.Builder selfHarmIntent(JsonField<Double> selfHarmIntent)
Sets Builder.selfHarmIntent to an arbitrary JSON value.
You should usually call Builder.selfHarmIntent with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
sexual
final Moderation.CategoryScores.Builder sexual(Double sexual)
The score for the category 'sexual'.
-
sexual
final Moderation.CategoryScores.Builder sexual(JsonField<Double> sexual)
Sets Builder.sexual to an arbitrary JSON value.
You should usually call Builder.sexual with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
sexualMinors
final Moderation.CategoryScores.Builder sexualMinors(Double sexualMinors)
The score for the category 'sexual/minors'.
-
sexualMinors
final Moderation.CategoryScores.Builder sexualMinors(JsonField<Double> sexualMinors)
Sets Builder.sexualMinors to an arbitrary JSON value.
You should usually call Builder.sexualMinors with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
violence
final Moderation.CategoryScores.Builder violence(Double violence)
The score for the category 'violence'.
-
violence
final Moderation.CategoryScores.Builder violence(JsonField<Double> violence)
Sets Builder.violence to an arbitrary JSON value.
You should usually call Builder.violence with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
violenceGraphic
final Moderation.CategoryScores.Builder violenceGraphic(Double violenceGraphic)
The score for the category 'violence/graphic'.
-
violenceGraphic
final Moderation.CategoryScores.Builder violenceGraphic(JsonField<Double> violenceGraphic)
Sets Builder.violenceGraphic to an arbitrary JSON value.
You should usually call Builder.violenceGraphic with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final Moderation.CategoryScores.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Moderation.CategoryScores.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Moderation.CategoryScores.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Moderation.CategoryScores.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Moderation.CategoryScores.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final Moderation.CategoryScores build()
Returns an immutable instance of CategoryScores.
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()
-
-
-
-