Class AssistantStreamEvent.ErrorEvent.Builder
-
- All Implemented Interfaces:
public final class AssistantStreamEvent.ErrorEvent.Builder
A builder for ErrorEvent.
-
-
Method Summary
Modifier and Type Method Description final AssistantStreamEvent.ErrorEvent.Builder
data(ErrorObject data)
final AssistantStreamEvent.ErrorEvent.Builder
data(JsonField<ErrorObject> data)
Sets Builder.data to an arbitrary JSON value. final AssistantStreamEvent.ErrorEvent.Builder
event(JsonValue event)
Sets the field to an arbitrary JSON value. final AssistantStreamEvent.ErrorEvent.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final AssistantStreamEvent.ErrorEvent.Builder
putAdditionalProperty(String key, JsonValue value)
final AssistantStreamEvent.ErrorEvent.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final AssistantStreamEvent.ErrorEvent.Builder
removeAdditionalProperty(String key)
final AssistantStreamEvent.ErrorEvent.Builder
removeAllAdditionalProperties(Set<String> keys)
final AssistantStreamEvent.ErrorEvent
build()
Returns an immutable instance of ErrorEvent. -
-
Method Detail
-
data
final AssistantStreamEvent.ErrorEvent.Builder data(ErrorObject data)
-
data
final AssistantStreamEvent.ErrorEvent.Builder data(JsonField<ErrorObject> data)
Sets Builder.data to an arbitrary JSON value.
You should usually call Builder.data with a well-typed ErrorObject value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
event
final AssistantStreamEvent.ErrorEvent.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("error")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final AssistantStreamEvent.ErrorEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final AssistantStreamEvent.ErrorEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final AssistantStreamEvent.ErrorEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final AssistantStreamEvent.ErrorEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final AssistantStreamEvent.ErrorEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final AssistantStreamEvent.ErrorEvent build()
Returns an immutable instance of ErrorEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.data()
-
-
-
-