Class RefusalDeltaBlock
-
- All Implemented Interfaces:
public final class RefusalDeltaBlockThe refusal content that is part of a message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRefusalDeltaBlock.BuilderA builder for RefusalDeltaBlock.
-
Method Summary
Modifier and Type Method Description final Longindex()The index of the refusal part in the message. final JsonValue_type()Always refusal.final Optional<String>refusal()final JsonField<Long>_index()Returns the raw JSON value of index. final JsonField<String>_refusal()Returns the raw JSON value of refusal. final Map<String, JsonValue>_additionalProperties()final RefusalDeltaBlock.BuildertoBuilder()final RefusalDeltaBlockvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RefusalDeltaBlock.Builderbuilder()Returns a mutable builder for constructing an instance of RefusalDeltaBlock. -
-
Method Detail
-
_type
final JsonValue _type()
Always
refusal.Expected to always return the following:
JsonValue.from("refusal")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_index
final JsonField<Long> _index()
Returns the raw JSON value of index.
Unlike index, this method doesn't throw if the JSON field has an unexpected type.
-
_refusal
final JsonField<String> _refusal()
Returns the raw JSON value of refusal.
Unlike refusal, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RefusalDeltaBlock.Builder toBuilder()
-
validate
final RefusalDeltaBlock validate()
-
builder
final static RefusalDeltaBlock.Builder builder()
Returns a mutable builder for constructing an instance of RefusalDeltaBlock.
The following fields are required:
.index()
-
-
-
-