Package com.openai.models.realtime
Class SessionUpdatedEvent
-
- All Implemented Interfaces:
public final class SessionUpdatedEvent
Returned when a session is updated with a
session.update
event, unless there is an error.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
SessionUpdatedEvent.Builder
A builder for SessionUpdatedEvent.
-
Method Summary
Modifier and Type Method Description final String
eventId()
The unique ID of the server event. final RealtimeSession
session()
Realtime session object. final JsonValue
_type()
The event type, must be session.updated
.final JsonField<String>
_eventId()
Returns the raw JSON value of eventId. final JsonField<RealtimeSession>
_session()
Returns the raw JSON value of session. final Map<String, JsonValue>
_additionalProperties()
final SessionUpdatedEvent.Builder
toBuilder()
final SessionUpdatedEvent
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static SessionUpdatedEvent.Builder
builder()
Returns a mutable builder for constructing an instance of SessionUpdatedEvent. -
-
Method Detail
-
session
final RealtimeSession session()
Realtime session object.
-
_type
final JsonValue _type()
The event type, must be
session.updated
.Expected to always return the following:
JsonValue.from("session.updated")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_eventId
final JsonField<String> _eventId()
Returns the raw JSON value of eventId.
Unlike eventId, this method doesn't throw if the JSON field has an unexpected type.
-
_session
final JsonField<RealtimeSession> _session()
Returns the raw JSON value of session.
Unlike session, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final SessionUpdatedEvent.Builder toBuilder()
-
validate
final SessionUpdatedEvent validate()
-
builder
final static SessionUpdatedEvent.Builder builder()
Returns a mutable builder for constructing an instance of SessionUpdatedEvent.
The following fields are required:
.eventId() .session()
-
-
-
-