Package com.openai.models.realtime
Class RealtimeConversationItemUserMessage.Content
-
- All Implemented Interfaces:
public final class RealtimeConversationItemUserMessage.Content
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRealtimeConversationItemUserMessage.Content.BuilderA builder for Content.
public final classRealtimeConversationItemUserMessage.Content.TypeThe content type (
input_textorinput_audio).
-
Method Summary
Modifier and Type Method Description final Optional<String>audio()Base64-encoded audio bytes (for input_audio).final Optional<String>text()The text content (for input_text).final Optional<String>transcript()Transcript of the audio (for input_audio).final Optional<RealtimeConversationItemUserMessage.Content.Type>type()The content type ( input_textorinput_audio).final JsonField<String>_audio()Returns the raw JSON value of audio. final JsonField<String>_text()Returns the raw JSON value of text. final JsonField<String>_transcript()Returns the raw JSON value of transcript. final JsonField<RealtimeConversationItemUserMessage.Content.Type>_type()Returns the raw JSON value of type. final Map<String, JsonValue>_additionalProperties()final RealtimeConversationItemUserMessage.Content.BuildertoBuilder()final RealtimeConversationItemUserMessage.Contentvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RealtimeConversationItemUserMessage.Content.Builderbuilder()Returns a mutable builder for constructing an instance of Content. -
-
Method Detail
-
transcript
final Optional<String> transcript()
Transcript of the audio (for
input_audio).
-
type
final Optional<RealtimeConversationItemUserMessage.Content.Type> type()
The content type (
input_textorinput_audio).
-
_audio
final JsonField<String> _audio()
Returns the raw JSON value of audio.
Unlike audio, this method doesn't throw if the JSON field has an unexpected type.
-
_text
final JsonField<String> _text()
Returns the raw JSON value of text.
Unlike text, this method doesn't throw if the JSON field has an unexpected type.
-
_transcript
final JsonField<String> _transcript()
Returns the raw JSON value of transcript.
Unlike transcript, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<RealtimeConversationItemUserMessage.Content.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RealtimeConversationItemUserMessage.Content.Builder toBuilder()
-
validate
final RealtimeConversationItemUserMessage.Content validate()
-
builder
final static RealtimeConversationItemUserMessage.Content.Builder builder()
Returns a mutable builder for constructing an instance of Content.
-
-
-
-