Class TranscriptionSessionUpdatedEvent.Session.Builder
-
- All Implemented Interfaces:
public final class TranscriptionSessionUpdatedEvent.Session.Builder
A builder for Session.
-
-
Method Summary
-
-
Method Detail
-
id
final TranscriptionSessionUpdatedEvent.Session.Builder id(String id)
Unique identifier for the session that looks like
sess_1234567890abcdef
.
-
id
final TranscriptionSessionUpdatedEvent.Session.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
audio
final TranscriptionSessionUpdatedEvent.Session.Builder audio(TranscriptionSessionUpdatedEvent.Session.Audio audio)
Configuration for input audio for the session.
-
audio
final TranscriptionSessionUpdatedEvent.Session.Builder audio(JsonField<TranscriptionSessionUpdatedEvent.Session.Audio> audio)
Sets Builder.audio to an arbitrary JSON value.
You should usually call Builder.audio with a well-typed Audio value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
expiresAt
final TranscriptionSessionUpdatedEvent.Session.Builder expiresAt(Long expiresAt)
Expiration timestamp for the session, in seconds since epoch.
-
expiresAt
final TranscriptionSessionUpdatedEvent.Session.Builder expiresAt(JsonField<Long> expiresAt)
Sets Builder.expiresAt to an arbitrary JSON value.
You should usually call Builder.expiresAt with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
include
final TranscriptionSessionUpdatedEvent.Session.Builder include(List<TranscriptionSessionUpdatedEvent.Session.Include> include)
Additional fields to include in server outputs.
item.input_audio_transcription.logprobs
: Include logprobs for input audio transcription.
-
include
final TranscriptionSessionUpdatedEvent.Session.Builder include(JsonField<List<TranscriptionSessionUpdatedEvent.Session.Include>> include)
Sets Builder.include to an arbitrary JSON value.
You should usually call Builder.include with a well-typed
List<Include>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addInclude
final TranscriptionSessionUpdatedEvent.Session.Builder addInclude(TranscriptionSessionUpdatedEvent.Session.Include include)
Adds a single Include to Builder.include.
-
object_
final TranscriptionSessionUpdatedEvent.Session.Builder object_(String object_)
The object type. Always
realtime.transcription_session
.
-
object_
final TranscriptionSessionUpdatedEvent.Session.Builder object_(JsonField<String> object_)
Sets Builder.object_ to an arbitrary JSON value.
You should usually call Builder.object_ with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final TranscriptionSessionUpdatedEvent.Session.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final TranscriptionSessionUpdatedEvent.Session.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final TranscriptionSessionUpdatedEvent.Session.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final TranscriptionSessionUpdatedEvent.Session.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final TranscriptionSessionUpdatedEvent.Session.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final TranscriptionSessionUpdatedEvent.Session build()
Returns an immutable instance of Session.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-