Class TranscriptionSessionUpdatedEvent.Builder
-
- All Implemented Interfaces:
public final class TranscriptionSessionUpdatedEvent.Builder
A builder for TranscriptionSessionUpdatedEvent.
-
-
Method Summary
-
-
Method Detail
-
eventId
final TranscriptionSessionUpdatedEvent.Builder eventId(String eventId)
The unique ID of the server event.
-
eventId
final TranscriptionSessionUpdatedEvent.Builder eventId(JsonField<String> eventId)
Sets Builder.eventId to an arbitrary JSON value.
You should usually call Builder.eventId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
session
final TranscriptionSessionUpdatedEvent.Builder session(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.
-
session
final TranscriptionSessionUpdatedEvent.Builder session(JsonField<TranscriptionSession> session)
Sets Builder.session to an arbitrary JSON value.
You should usually call Builder.session with a well-typed TranscriptionSession value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final TranscriptionSessionUpdatedEvent.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("transcription_session.updated")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final TranscriptionSessionUpdatedEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final TranscriptionSessionUpdatedEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final TranscriptionSessionUpdatedEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final TranscriptionSessionUpdatedEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final TranscriptionSessionUpdatedEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final TranscriptionSessionUpdatedEvent build()
Returns an immutable instance of TranscriptionSessionUpdatedEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.eventId() .session()
-
-
-
-