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