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