Class ResponseInputAudio.Builder
-
- All Implemented Interfaces:
public final class ResponseInputAudio.Builder
A builder for ResponseInputAudio.
-
-
Method Summary
-
-
Method Detail
-
data
final ResponseInputAudio.Builder data(String data)
Base64-encoded audio data.
-
data
final ResponseInputAudio.Builder data(JsonField<String> data)
Sets Builder.data to an arbitrary JSON value.
You should usually call Builder.data with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
format
final ResponseInputAudio.Builder format(ResponseInputAudio.Format format)
The format of the audio data. Currently supported formats are
mp3
andwav
.
-
format
final ResponseInputAudio.Builder format(JsonField<ResponseInputAudio.Format> format)
Sets Builder.format to an arbitrary JSON value.
You should usually call Builder.format with a well-typed Format value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ResponseInputAudio.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")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ResponseInputAudio.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseInputAudio.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseInputAudio.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseInputAudio.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseInputAudio.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseInputAudio build()
Returns an immutable instance of ResponseInputAudio.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.data() .format()
-
-
-
-