Class RefusalDeltaBlock
-
- All Implemented Interfaces:
public final class RefusalDeltaBlock
The refusal content that is part of a message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
RefusalDeltaBlock.Builder
A builder for RefusalDeltaBlock.
-
Method Summary
Modifier and Type Method Description final Long
index()
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.Builder
toBuilder()
final RefusalDeltaBlock
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static RefusalDeltaBlock.Builder
builder()
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()
-
-
-
-