Class RealtimeConversationItemUserMessage.Content.Builder
-
- All Implemented Interfaces:
public final class RealtimeConversationItemUserMessage.Content.Builder
A builder for Content.
-
-
Method Summary
-
-
Method Detail
-
audio
final RealtimeConversationItemUserMessage.Content.Builder audio(String audio)
Base64-encoded audio bytes (for
input_audio
).
-
audio
final RealtimeConversationItemUserMessage.Content.Builder audio(JsonField<String> audio)
Sets Builder.audio to an arbitrary JSON value.
You should usually call Builder.audio with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
text
final RealtimeConversationItemUserMessage.Content.Builder text(String text)
The text content (for
input_text
).
-
text
final RealtimeConversationItemUserMessage.Content.Builder text(JsonField<String> text)
Sets Builder.text to an arbitrary JSON value.
You should usually call Builder.text with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
transcript
final RealtimeConversationItemUserMessage.Content.Builder transcript(String transcript)
Transcript of the audio (for
input_audio
).
-
transcript
final RealtimeConversationItemUserMessage.Content.Builder transcript(JsonField<String> transcript)
Sets Builder.transcript to an arbitrary JSON value.
You should usually call Builder.transcript 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 RealtimeConversationItemUserMessage.Content.Builder type(RealtimeConversationItemUserMessage.Content.Type type)
The content type (
input_text
orinput_audio
).
-
type
final RealtimeConversationItemUserMessage.Content.Builder type(JsonField<RealtimeConversationItemUserMessage.Content.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final RealtimeConversationItemUserMessage.Content.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RealtimeConversationItemUserMessage.Content.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RealtimeConversationItemUserMessage.Content.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RealtimeConversationItemUserMessage.Content.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RealtimeConversationItemUserMessage.Content.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RealtimeConversationItemUserMessage.Content build()
Returns an immutable instance of Content.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-