Class Moderation.CategoryScores
-
- All Implemented Interfaces:
public final class Moderation.CategoryScoresA list of the categories along with their scores as predicted by model.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classModeration.CategoryScores.BuilderA builder for CategoryScores.
-
Method Summary
Modifier and Type Method Description final Doubleharassment()The score for the category 'harassment'. final DoubleharassmentThreatening()The score for the category 'harassment/threatening'. final Doublehate()The score for the category 'hate'. final DoublehateThreatening()The score for the category 'hate/threatening'. final Doubleillicit()The score for the category 'illicit'. final DoubleillicitViolent()The score for the category 'illicit/violent'. final DoubleselfHarm()The score for the category 'self-harm'. final DoubleselfHarmInstructions()The score for the category 'self-harm/instructions'. final DoubleselfHarmIntent()The score for the category 'self-harm/intent'. final Doublesexual()The score for the category 'sexual'. final DoublesexualMinors()The score for the category 'sexual/minors'. final Doubleviolence()The score for the category 'violence'. final DoubleviolenceGraphic()The score for the category 'violence/graphic'. final JsonField<Double>_harassment()Returns the raw JSON value of harassment. final JsonField<Double>_harassmentThreatening()Returns the raw JSON value of harassmentThreatening. final JsonField<Double>_hate()Returns the raw JSON value of hate. final JsonField<Double>_hateThreatening()Returns the raw JSON value of hateThreatening. final JsonField<Double>_illicit()Returns the raw JSON value of illicit. final JsonField<Double>_illicitViolent()Returns the raw JSON value of illicitViolent. final JsonField<Double>_selfHarm()Returns the raw JSON value of selfHarm. final JsonField<Double>_selfHarmInstructions()Returns the raw JSON value of selfHarmInstructions. final JsonField<Double>_selfHarmIntent()Returns the raw JSON value of selfHarmIntent. final JsonField<Double>_sexual()Returns the raw JSON value of sexual. final JsonField<Double>_sexualMinors()Returns the raw JSON value of sexualMinors. final JsonField<Double>_violence()Returns the raw JSON value of violence. final JsonField<Double>_violenceGraphic()Returns the raw JSON value of violenceGraphic. final Map<String, JsonValue>_additionalProperties()final Moderation.CategoryScores.BuildertoBuilder()final Moderation.CategoryScoresvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Moderation.CategoryScores.Builderbuilder()Returns a mutable builder for constructing an instance of CategoryScores. -
-
Method Detail
-
harassment
final Double harassment()
The score for the category 'harassment'.
-
harassmentThreatening
final Double harassmentThreatening()
The score for the category 'harassment/threatening'.
-
hateThreatening
final Double hateThreatening()
The score for the category 'hate/threatening'.
-
illicitViolent
final Double illicitViolent()
The score for the category 'illicit/violent'.
-
selfHarmInstructions
final Double selfHarmInstructions()
The score for the category 'self-harm/instructions'.
-
selfHarmIntent
final Double selfHarmIntent()
The score for the category 'self-harm/intent'.
-
sexualMinors
final Double sexualMinors()
The score for the category 'sexual/minors'.
-
violenceGraphic
final Double violenceGraphic()
The score for the category 'violence/graphic'.
-
_harassment
final JsonField<Double> _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<Double> _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<Double> _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<Double> _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<Double> _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<Double> _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<Double> _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<Double> _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<Double> _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<Double> _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<Double> _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<Double> _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<Double> _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.CategoryScores.Builder toBuilder()
-
validate
final Moderation.CategoryScores validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static Moderation.CategoryScores.Builder builder()
Returns a mutable builder for constructing an instance of CategoryScores.
The following fields are required:
.harassment() .harassmentThreatening() .hate() .hateThreatening() .illicit() .illicitViolent() .selfHarm() .selfHarmInstructions() .selfHarmIntent() .sexual() .sexualMinors() .violence() .violenceGraphic()
-
-
-
-