Class TranscriptionSessionUpdatedEvent
-
- All Implemented Interfaces:
public final class TranscriptionSessionUpdatedEventReturned when a transcription session is updated with a
transcription_session.updateevent, unless there is an error.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTranscriptionSessionUpdatedEvent.BuilderA builder for TranscriptionSessionUpdatedEvent.
public final classTranscriptionSessionUpdatedEvent.SessionA new Realtime transcription session configuration.
When a session is created on the server via REST API, the session object also contains an ephemeral key. Default TTL for keys is 10 minutes. This property is not present when a session is updated via the WebSocket API.
-
Method Summary
Modifier and Type Method Description final StringeventId()The unique ID of the server event. final TranscriptionSessionUpdatedEvent.Sessionsession()A new Realtime transcription session configuration. final JsonValue_type()The event type, must be transcription_session.updated.final JsonField<String>_eventId()Returns the raw JSON value of eventId. final JsonField<TranscriptionSessionUpdatedEvent.Session>_session()Returns the raw JSON value of session. final Map<String, JsonValue>_additionalProperties()final TranscriptionSessionUpdatedEvent.BuildertoBuilder()final TranscriptionSessionUpdatedEventvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static TranscriptionSessionUpdatedEvent.Builderbuilder()Returns a mutable builder for constructing an instance of TranscriptionSessionUpdatedEvent. -
-
Method Detail
-
session
final TranscriptionSessionUpdatedEvent.Session session()
A new Realtime transcription session configuration.
When a session is created on the server via REST API, the session object also contains an ephemeral key. Default TTL for keys is 10 minutes. This property is not present when a session is updated via the WebSocket API.
-
_type
final JsonValue _type()
The event type, must be
transcription_session.updated.Expected to always return the following:
JsonValue.from("transcription_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<TranscriptionSessionUpdatedEvent.Session> _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 TranscriptionSessionUpdatedEvent.Builder toBuilder()
-
validate
final TranscriptionSessionUpdatedEvent validate()
-
builder
final static TranscriptionSessionUpdatedEvent.Builder builder()
Returns a mutable builder for constructing an instance of TranscriptionSessionUpdatedEvent.
The following fields are required:
.eventId() .session()
-
-
-
-