Class RealtimeResponseStatus.Builder
-
- All Implemented Interfaces:
public final class RealtimeResponseStatus.BuilderA builder for RealtimeResponseStatus.
-
-
Method Summary
-
-
Method Detail
-
error
final RealtimeResponseStatus.Builder error(RealtimeResponseStatus.Error error)
A description of the error that caused the response to fail, populated when the
statusisfailed.
-
error
final RealtimeResponseStatus.Builder error(JsonField<RealtimeResponseStatus.Error> error)
Sets Builder.error to an arbitrary JSON value.
You should usually call Builder.error with a well-typed Error value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
reason
final RealtimeResponseStatus.Builder reason(RealtimeResponseStatus.Reason reason)
The reason the Response did not complete. For a
cancelledResponse, one ofturn_detected(the server VAD detected a new start of speech) orclient_cancelled(the client sent a cancel event). For anincompleteResponse, one ofmax_output_tokensorcontent_filter(the server-side safety filter activated and cut off the response).
-
reason
final RealtimeResponseStatus.Builder reason(JsonField<RealtimeResponseStatus.Reason> reason)
Sets Builder.reason to an arbitrary JSON value.
You should usually call Builder.reason with a well-typed Reason value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final RealtimeResponseStatus.Builder type(RealtimeResponseStatus.Type type)
The type of error that caused the response to fail, corresponding with the
statusfield (completed,cancelled,incomplete,failed).
-
type
final RealtimeResponseStatus.Builder type(JsonField<RealtimeResponseStatus.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final RealtimeResponseStatus.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RealtimeResponseStatus.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RealtimeResponseStatus.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RealtimeResponseStatus.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RealtimeResponseStatus.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RealtimeResponseStatus build()
Returns an immutable instance of RealtimeResponseStatus.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-