Class Response.Moderation.Input.ModerationResult.Builder
-
- All Implemented Interfaces:
public final class Response.Moderation.Input.ModerationResult.BuilderA builder for ModerationResult.
-
-
Method Summary
-
-
Method Detail
-
categories
final Response.Moderation.Input.ModerationResult.Builder categories(Response.Moderation.Input.ModerationResult.Categories categories)
A dictionary of moderation categories to booleans, True if the input is flagged under this category.
-
categories
final Response.Moderation.Input.ModerationResult.Builder categories(JsonField<Response.Moderation.Input.ModerationResult.Categories> categories)
Sets Builder.categories to an arbitrary JSON value.
You should usually call Builder.categories with a well-typed Categories value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
categoryAppliedInputTypes
final Response.Moderation.Input.ModerationResult.Builder categoryAppliedInputTypes(Response.Moderation.Input.ModerationResult.CategoryAppliedInputTypes categoryAppliedInputTypes)
Which modalities of input are reflected by the score for each category.
-
categoryAppliedInputTypes
final Response.Moderation.Input.ModerationResult.Builder categoryAppliedInputTypes(JsonField<Response.Moderation.Input.ModerationResult.CategoryAppliedInputTypes> categoryAppliedInputTypes)
Sets Builder.categoryAppliedInputTypes to an arbitrary JSON value.
You should usually call Builder.categoryAppliedInputTypes with a well-typed CategoryAppliedInputTypes value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
categoryScores
final Response.Moderation.Input.ModerationResult.Builder categoryScores(Response.Moderation.Input.ModerationResult.CategoryScores categoryScores)
A dictionary of moderation categories to scores.
-
categoryScores
final Response.Moderation.Input.ModerationResult.Builder categoryScores(JsonField<Response.Moderation.Input.ModerationResult.CategoryScores> categoryScores)
Sets Builder.categoryScores to an arbitrary JSON value.
You should usually call Builder.categoryScores with a well-typed CategoryScores value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
flagged
final Response.Moderation.Input.ModerationResult.Builder flagged(Boolean flagged)
A boolean indicating whether the content was flagged by any category.
-
flagged
final Response.Moderation.Input.ModerationResult.Builder flagged(JsonField<Boolean> flagged)
Sets Builder.flagged to an arbitrary JSON value.
You should usually call Builder.flagged with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
model
final Response.Moderation.Input.ModerationResult.Builder model(String model)
The moderation model that produced this result.
-
model
final Response.Moderation.Input.ModerationResult.Builder model(JsonField<String> model)
Sets Builder.model to an arbitrary JSON value.
You should usually call Builder.model with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final Response.Moderation.Input.ModerationResult.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("moderation_result")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final Response.Moderation.Input.ModerationResult.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Response.Moderation.Input.ModerationResult.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Response.Moderation.Input.ModerationResult.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Response.Moderation.Input.ModerationResult.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Response.Moderation.Input.ModerationResult.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final Response.Moderation.Input.ModerationResult build()
Returns an immutable instance of ModerationResult.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.categories() .categoryAppliedInputTypes() .categoryScores() .flagged() .model()
-
-
-
-