Class BetaResponse.Moderation
-
- All Implemented Interfaces:
public final class BetaResponse.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 classBetaResponse.Moderation.BuilderA builder for Moderation.
public final classBetaResponse.Moderation.InputModeration for the response input.
public final classBetaResponse.Moderation.OutputModeration for the response output.
-
Method Summary
Modifier and Type Method Description final BetaResponse.Moderation.Inputinput()Moderation for the response input. final BetaResponse.Moderation.Outputoutput()Moderation for the response output. final JsonField<BetaResponse.Moderation.Input>_input()Returns the raw JSON value of input. final JsonField<BetaResponse.Moderation.Output>_output()Returns the raw JSON value of output. final Map<String, JsonValue>_additionalProperties()final BetaResponse.Moderation.BuildertoBuilder()final BetaResponse.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 BetaResponse.Moderation.Builderbuilder()Returns a mutable builder for constructing an instance of Moderation. -
-
Method Detail
-
input
final BetaResponse.Moderation.Input input()
Moderation for the response input.
-
output
final BetaResponse.Moderation.Output output()
Moderation for the response output.
-
_input
final JsonField<BetaResponse.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<BetaResponse.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 BetaResponse.Moderation.Builder toBuilder()
-
validate
final BetaResponse.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 BetaResponse.Moderation.Builder builder()
Returns a mutable builder for constructing an instance of Moderation.
The following fields are required:
.input() .output()
-
-
-
-