Class ThreadStreamEvent
-
- All Implemented Interfaces:
public final class ThreadStreamEvent
Occurs when a new thread is created.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ThreadStreamEvent.Builder
A builder for ThreadStreamEvent.
-
Method Summary
Modifier and Type Method Description final Thread
data()
Represents a thread that contains messages. final JsonValue
_event()
Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("thread.created")
final Optional<Boolean>
enabled()
Whether to enable input audio transcription. final JsonField<Thread>
_data()
Returns the raw JSON value of data. final JsonField<Boolean>
_enabled()
Returns the raw JSON value of enabled. final Map<String, JsonValue>
_additionalProperties()
final ThreadStreamEvent.Builder
toBuilder()
final ThreadStreamEvent
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ThreadStreamEvent.Builder
builder()
Returns a mutable builder for constructing an instance of ThreadStreamEvent. -
-
Method Detail
-
_event
final JsonValue _event()
Expected to always return the following:
JsonValue.from("thread.created")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_data
final JsonField<Thread> _data()
Returns the raw JSON value of data.
Unlike data, this method doesn't throw if the JSON field has an unexpected type.
-
_enabled
final JsonField<Boolean> _enabled()
Returns the raw JSON value of enabled.
Unlike enabled, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ThreadStreamEvent.Builder toBuilder()
-
validate
final ThreadStreamEvent validate()
-
builder
final static ThreadStreamEvent.Builder builder()
Returns a mutable builder for constructing an instance of ThreadStreamEvent.
The following fields are required:
.data()
-
-
-
-