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