Class RealtimeConversationItemFunctionCall.Builder
-
- All Implemented Interfaces:
public final class RealtimeConversationItemFunctionCall.Builder
A builder for RealtimeConversationItemFunctionCall.
-
-
Method Summary
-
-
Method Detail
-
arguments
final RealtimeConversationItemFunctionCall.Builder arguments(String arguments)
The arguments of the function call.
-
arguments
final RealtimeConversationItemFunctionCall.Builder arguments(JsonField<String> arguments)
Sets Builder.arguments to an arbitrary JSON value.
You should usually call Builder.arguments with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final RealtimeConversationItemFunctionCall.Builder name(String name)
The name of the function being called.
-
name
final RealtimeConversationItemFunctionCall.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final RealtimeConversationItemFunctionCall.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("function_call")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
id
final RealtimeConversationItemFunctionCall.Builder id(String id)
The unique ID of the item.
-
id
final RealtimeConversationItemFunctionCall.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
callId
final RealtimeConversationItemFunctionCall.Builder callId(String callId)
The ID of the function call.
-
callId
final RealtimeConversationItemFunctionCall.Builder callId(JsonField<String> callId)
Sets Builder.callId to an arbitrary JSON value.
You should usually call Builder.callId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
object_
final RealtimeConversationItemFunctionCall.Builder object_(RealtimeConversationItemFunctionCall.Object object_)
Identifier for the API object being returned - always
realtime.item
.
-
object_
final RealtimeConversationItemFunctionCall.Builder object_(JsonField<RealtimeConversationItemFunctionCall.Object> object_)
Sets Builder.object_ to an arbitrary JSON value.
You should usually call Builder.object_ with a well-typed Object value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
status
final RealtimeConversationItemFunctionCall.Builder status(RealtimeConversationItemFunctionCall.Status status)
The status of the item. Has no effect on the conversation.
-
status
final RealtimeConversationItemFunctionCall.Builder status(JsonField<RealtimeConversationItemFunctionCall.Status> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed Status value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final RealtimeConversationItemFunctionCall.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RealtimeConversationItemFunctionCall.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RealtimeConversationItemFunctionCall.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RealtimeConversationItemFunctionCall.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RealtimeConversationItemFunctionCall.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RealtimeConversationItemFunctionCall build()
Returns an immutable instance of RealtimeConversationItemFunctionCall.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.arguments() .name()
-
-
-
-