Package com.openai.models.responses
Class ResponseAudioDeltaEvent.Builder
-
- All Implemented Interfaces:
public final class ResponseAudioDeltaEvent.Builder
A builder for ResponseAudioDeltaEvent.
-
-
Method Summary
Modifier and Type Method Description final ResponseAudioDeltaEvent.Builder
delta(String delta)
A chunk of Base64 encoded response audio bytes. final ResponseAudioDeltaEvent.Builder
delta(JsonField<String> delta)
Sets Builder.delta to an arbitrary JSON value. final ResponseAudioDeltaEvent.Builder
type(JsonValue type)
Sets the field to an arbitrary JSON value. final ResponseAudioDeltaEvent.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final ResponseAudioDeltaEvent.Builder
putAdditionalProperty(String key, JsonValue value)
final ResponseAudioDeltaEvent.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final ResponseAudioDeltaEvent.Builder
removeAdditionalProperty(String key)
final ResponseAudioDeltaEvent.Builder
removeAllAdditionalProperties(Set<String> keys)
final ResponseAudioDeltaEvent
build()
Returns an immutable instance of ResponseAudioDeltaEvent. -
-
Method Detail
-
delta
final ResponseAudioDeltaEvent.Builder delta(String delta)
A chunk of Base64 encoded response audio bytes.
-
delta
final ResponseAudioDeltaEvent.Builder delta(JsonField<String> delta)
Sets Builder.delta to an arbitrary JSON value.
You should usually call Builder.delta with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ResponseAudioDeltaEvent.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("response.audio.delta")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ResponseAudioDeltaEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseAudioDeltaEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseAudioDeltaEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseAudioDeltaEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseAudioDeltaEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseAudioDeltaEvent build()
Returns an immutable instance of ResponseAudioDeltaEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.delta()
-
-
-
-