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