Class TranscriptionSessionUpdatedEvent
-
- All Implemented Interfaces:
public final class TranscriptionSessionUpdatedEvent
Returned when a transcription session is updated with a
transcription_session.update
event, unless there is an error.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
TranscriptionSessionUpdatedEvent.Builder
A builder for TranscriptionSessionUpdatedEvent.
-
Method Summary
Modifier and Type Method Description final String
eventId()
The unique ID of the server event. final TranscriptionSession
session()
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<TranscriptionSession>
_session()
Returns the raw JSON value of session. final Map<String, JsonValue>
_additionalProperties()
final TranscriptionSessionUpdatedEvent.Builder
toBuilder()
final TranscriptionSessionUpdatedEvent
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static TranscriptionSessionUpdatedEvent.Builder
builder()
Returns a mutable builder for constructing an instance of TranscriptionSessionUpdatedEvent. -
-
Method Detail
-
session
final TranscriptionSession 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<TranscriptionSession> _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()
-
-
-
-