Class BetaResponseErrorEvent
-
- All Implemented Interfaces:
public final class BetaResponseErrorEventEmitted when an error occurs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseErrorEvent.BuilderA builder for BetaResponseErrorEvent.
public final classBetaResponseErrorEvent.AgentThe agent that owns this multi-agent streaming event.
-
Method Summary
Modifier and Type Method Description final Optional<String>code()The error code. final Stringmessage()The error message. final Optional<String>param()The error parameter. final LongsequenceNumber()The sequence number of this event. final JsonValue_type()The type of the event. final Optional<BetaResponseErrorEvent.Agent>agent()The agent that owns this multi-agent streaming event. final JsonField<String>_code()Returns the raw JSON value of code. final JsonField<String>_message()Returns the raw JSON value of message. final JsonField<String>_param()Returns the raw JSON value of param. final JsonField<Long>_sequenceNumber()Returns the raw JSON value of sequenceNumber. final JsonField<BetaResponseErrorEvent.Agent>_agent()Returns the raw JSON value of agent. final Map<String, JsonValue>_additionalProperties()final BetaResponseErrorEvent.BuildertoBuilder()final BetaResponseErrorEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseErrorEvent.Builderbuilder()Returns a mutable builder for constructing an instance of BetaResponseErrorEvent. -
-
Method Detail
-
sequenceNumber
final Long sequenceNumber()
The sequence number of this event.
-
_type
final JsonValue _type()
The type of the event. Always
error.Expected to always return the following:
JsonValue.from("error")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
agent
final Optional<BetaResponseErrorEvent.Agent> agent()
The agent that owns this multi-agent streaming event.
-
_code
final JsonField<String> _code()
Returns the raw JSON value of code.
Unlike code, this method doesn't throw if the JSON field has an unexpected type.
-
_message
final JsonField<String> _message()
Returns the raw JSON value of message.
Unlike message, this method doesn't throw if the JSON field has an unexpected type.
-
_param
final JsonField<String> _param()
Returns the raw JSON value of param.
Unlike param, 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.
-
_agent
final JsonField<BetaResponseErrorEvent.Agent> _agent()
Returns the raw JSON value of agent.
Unlike agent, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponseErrorEvent.Builder toBuilder()
-
validate
final BetaResponseErrorEvent 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 BetaResponseErrorEvent.Builder builder()
Returns a mutable builder for constructing an instance of BetaResponseErrorEvent.
The following fields are required:
.code() .message() .param() .sequenceNumber()
-
-
-
-