Class TranscriptionSessionCreated
-
- All Implemented Interfaces:
public final class TranscriptionSessionCreated
Returned when a transcription session is created.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
TranscriptionSessionCreated.Builder
A builder for TranscriptionSessionCreated.
public final class
TranscriptionSessionCreated.Session
A Realtime transcription session configuration object.
-
Method Summary
Modifier and Type Method Description final String
eventId()
The unique ID of the server event. final TranscriptionSessionCreated.Session
session()
A Realtime transcription session configuration object. final JsonValue
_type()
The event type, must be transcription_session.created
.final JsonField<String>
_eventId()
Returns the raw JSON value of eventId. final JsonField<TranscriptionSessionCreated.Session>
_session()
Returns the raw JSON value of session. final Map<String, JsonValue>
_additionalProperties()
final TranscriptionSessionCreated.Builder
toBuilder()
final TranscriptionSessionCreated
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static TranscriptionSessionCreated.Builder
builder()
Returns a mutable builder for constructing an instance of TranscriptionSessionCreated. -
-
Method Detail
-
session
final TranscriptionSessionCreated.Session session()
A Realtime transcription session configuration object.
-
_type
final JsonValue _type()
The event type, must be
transcription_session.created
.Expected to always return the following:
JsonValue.from("transcription_session.created")
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<TranscriptionSessionCreated.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 TranscriptionSessionCreated.Builder toBuilder()
-
validate
final TranscriptionSessionCreated validate()
-
builder
final static TranscriptionSessionCreated.Builder builder()
Returns a mutable builder for constructing an instance of TranscriptionSessionCreated.
The following fields are required:
.eventId() .session()
-
-
-
-