Class ThreadStreamEvent.Builder
-
- All Implemented Interfaces:
public final class ThreadStreamEvent.Builder
A builder for ThreadStreamEvent.
-
-
Method Summary
-
-
Method Detail
-
data
final ThreadStreamEvent.Builder data(Thread data)
Represents a thread that contains messages.
-
data
final ThreadStreamEvent.Builder data(JsonField<Thread> data)
Sets Builder.data to an arbitrary JSON value.
You should usually call Builder.data with a well-typed Thread value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
event
final ThreadStreamEvent.Builder event(JsonValue event)
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("thread.created")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
enabled
final ThreadStreamEvent.Builder enabled(Boolean enabled)
Whether to enable input audio transcription.
-
enabled
final ThreadStreamEvent.Builder enabled(JsonField<Boolean> enabled)
Sets Builder.enabled to an arbitrary JSON value.
You should usually call Builder.enabled with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ThreadStreamEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ThreadStreamEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ThreadStreamEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ThreadStreamEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ThreadStreamEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ThreadStreamEvent build()
Returns an immutable instance of ThreadStreamEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.data()
-
-
-
-