Class ResponseContentPartDoneEvent.Part
-
- All Implemented Interfaces:
public final class ResponseContentPartDoneEvent.PartThe content part that is done.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseContentPartDoneEvent.Part.BuilderA builder for Part.
public final classResponseContentPartDoneEvent.Part.TypeThe content type ("text", "audio").
-
Method Summary
Modifier and Type Method Description final Optional<String>audio()Base64-encoded audio data (if type is "audio"). final Optional<String>text()The text content (if type is "text"). final Optional<String>transcript()The transcript of the audio (if type is "audio"). final Optional<ResponseContentPartDoneEvent.Part.Type>type()The content type ("text", "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<ResponseContentPartDoneEvent.Part.Type>_type()Returns the raw JSON value of type. final Map<String, JsonValue>_additionalProperties()final ResponseContentPartDoneEvent.Part.BuildertoBuilder()final ResponseContentPartDoneEvent.Partvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseContentPartDoneEvent.Part.Builderbuilder()Returns a mutable builder for constructing an instance of Part. -
-
Method Detail
-
transcript
final Optional<String> transcript()
The transcript of the audio (if type is "audio").
-
type
final Optional<ResponseContentPartDoneEvent.Part.Type> type()
The content type ("text", "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<ResponseContentPartDoneEvent.Part.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 ResponseContentPartDoneEvent.Part.Builder toBuilder()
-
validate
final ResponseContentPartDoneEvent.Part validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ResponseContentPartDoneEvent.Part.Builder builder()
Returns a mutable builder for constructing an instance of Part.
-
-
-
-