Class BetaResponseInjectFailedEvent
-
- All Implemented Interfaces:
public final class BetaResponseInjectFailedEventEmitted when injected input could not be committed to a response. The event returns the uncommitted raw input so the client can retry it in another response when appropriate.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseInjectFailedEvent.BuilderA builder for BetaResponseInjectFailedEvent.
public final classBetaResponseInjectFailedEvent.ErrorInformation about why the input was not committed.
-
Method Summary
Modifier and Type Method Description final BetaResponseInjectFailedEvent.Errorerror()Information about why the input was not committed. final List<BetaResponseInputItem>input()The raw input items that were not committed. final StringresponseId()The ID of the response that rejected the input. final LongsequenceNumber()The sequence number for this event. final JsonValue_type()The event discriminator. final Optional<String>streamId()The multiplexed WebSocket stream that emitted the event. final JsonField<BetaResponseInjectFailedEvent.Error>_error()Returns the raw JSON value of error. final JsonField<List<BetaResponseInputItem>>_input()Returns the raw JSON value of input. final JsonField<String>_responseId()Returns the raw JSON value of responseId. final JsonField<Long>_sequenceNumber()Returns the raw JSON value of sequenceNumber. final JsonField<String>_streamId()Returns the raw JSON value of streamId. final Map<String, JsonValue>_additionalProperties()final BetaResponseInjectFailedEvent.BuildertoBuilder()final BetaResponseInjectFailedEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseInjectFailedEvent.Builderbuilder()Returns a mutable builder for constructing an instance of BetaResponseInjectFailedEvent. -
-
Method Detail
-
error
final BetaResponseInjectFailedEvent.Error error()
Information about why the input was not committed.
-
input
final List<BetaResponseInputItem> input()
The raw input items that were not committed.
-
responseId
final String responseId()
The ID of the response that rejected the input.
-
sequenceNumber
final Long sequenceNumber()
The sequence number for this event.
-
_type
final JsonValue _type()
The event discriminator. Always
response.inject.failed.Expected to always return the following:
JsonValue.from("response.inject.failed")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
streamId
final Optional<String> streamId()
The multiplexed WebSocket stream that emitted the event. This field is present only when WebSocket multiplexing is enabled separately.
-
_error
final JsonField<BetaResponseInjectFailedEvent.Error> _error()
Returns the raw JSON value of error.
Unlike error, this method doesn't throw if the JSON field has an unexpected type.
-
_input
final JsonField<List<BetaResponseInputItem>> _input()
Returns the raw JSON value of input.
Unlike input, this method doesn't throw if the JSON field has an unexpected type.
-
_responseId
final JsonField<String> _responseId()
Returns the raw JSON value of responseId.
Unlike responseId, this method doesn't throw if the JSON field has an unexpected type.
-
_sequenceNumber
final JsonField<Long> _sequenceNumber()
Returns the raw JSON value of sequenceNumber.
Unlike sequenceNumber, this method doesn't throw if the JSON field has an unexpected type.
-
_streamId
final JsonField<String> _streamId()
Returns the raw JSON value of streamId.
Unlike streamId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponseInjectFailedEvent.Builder toBuilder()
-
validate
final BetaResponseInjectFailedEvent 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 BetaResponseInjectFailedEvent.Builder builder()
Returns a mutable builder for constructing an instance of BetaResponseInjectFailedEvent.
The following fields are required:
.error() .input() .responseId() .sequenceNumber()
-
-
-
-