Class Response.Moderation
-
- All Implemented Interfaces:
public final class Response.ModerationModeration results for the response input and output, if moderated completions were requested.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponse.Moderation.BuilderA builder for Moderation.
public final classResponse.Moderation.InputModeration for the response input.
public final classResponse.Moderation.OutputModeration for the response output.
-
Method Summary
Modifier and Type Method Description final Response.Moderation.Inputinput()Moderation for the response input. final Response.Moderation.Outputoutput()Moderation for the response output. final JsonField<Response.Moderation.Input>_input()Returns the raw JSON value of input. final JsonField<Response.Moderation.Output>_output()Returns the raw JSON value of output. final Map<String, JsonValue>_additionalProperties()final Response.Moderation.BuildertoBuilder()final Response.Moderationvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Response.Moderation.Builderbuilder()Returns a mutable builder for constructing an instance of Moderation. -
-
Method Detail
-
input
final Response.Moderation.Input input()
Moderation for the response input.
-
output
final Response.Moderation.Output output()
Moderation for the response output.
-
_input
final JsonField<Response.Moderation.Input> _input()
Returns the raw JSON value of input.
Unlike input, this method doesn't throw if the JSON field has an unexpected type.
-
_output
final JsonField<Response.Moderation.Output> _output()
Returns the raw JSON value of output.
Unlike output, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final Response.Moderation.Builder toBuilder()
-
validate
final Response.Moderation 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 Response.Moderation.Builder builder()
Returns a mutable builder for constructing an instance of Moderation.
The following fields are required:
.input() .output()
-
-
-
-