Package com.openai.models.realtime
Class OutputAudioBufferClearEvent.Builder
-
- All Implemented Interfaces:
public final class OutputAudioBufferClearEvent.Builder
A builder for OutputAudioBufferClearEvent.
-
-
Method Summary
Modifier and Type Method Description final OutputAudioBufferClearEvent.Builder
type(JsonValue type)
Sets the field to an arbitrary JSON value. final OutputAudioBufferClearEvent.Builder
eventId(String eventId)
The unique ID of the client event used for error handling. final OutputAudioBufferClearEvent.Builder
eventId(JsonField<String> eventId)
Sets Builder.eventId to an arbitrary JSON value. final OutputAudioBufferClearEvent.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final OutputAudioBufferClearEvent.Builder
putAdditionalProperty(String key, JsonValue value)
final OutputAudioBufferClearEvent.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final OutputAudioBufferClearEvent.Builder
removeAdditionalProperty(String key)
final OutputAudioBufferClearEvent.Builder
removeAllAdditionalProperties(Set<String> keys)
final OutputAudioBufferClearEvent
build()
Returns an immutable instance of OutputAudioBufferClearEvent. -
-
Method Detail
-
type
final OutputAudioBufferClearEvent.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("output_audio_buffer.clear")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
eventId
final OutputAudioBufferClearEvent.Builder eventId(String eventId)
The unique ID of the client event used for error handling.
-
eventId
final OutputAudioBufferClearEvent.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.
-
additionalProperties
final OutputAudioBufferClearEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final OutputAudioBufferClearEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final OutputAudioBufferClearEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final OutputAudioBufferClearEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final OutputAudioBufferClearEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final OutputAudioBufferClearEvent build()
Returns an immutable instance of OutputAudioBufferClearEvent.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-