Class RealtimeConversationItemSystemMessage.Builder
-
- All Implemented Interfaces:
public final class RealtimeConversationItemSystemMessage.Builder
A builder for RealtimeConversationItemSystemMessage.
-
-
Method Summary
-
-
Method Detail
-
content
final RealtimeConversationItemSystemMessage.Builder content(List<RealtimeConversationItemSystemMessage.Content> content)
The content of the message.
-
content
final RealtimeConversationItemSystemMessage.Builder content(JsonField<List<RealtimeConversationItemSystemMessage.Content>> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed
List<Content>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addContent
final RealtimeConversationItemSystemMessage.Builder addContent(RealtimeConversationItemSystemMessage.Content content)
Adds a single Content to Builder.content.
-
role
final RealtimeConversationItemSystemMessage.Builder role(JsonValue role)
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("system")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final RealtimeConversationItemSystemMessage.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("message")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
id
final RealtimeConversationItemSystemMessage.Builder id(String id)
The unique ID of the item. This may be provided by the client or generated by the server.
-
id
final RealtimeConversationItemSystemMessage.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.
-
object_
final RealtimeConversationItemSystemMessage.Builder object_(RealtimeConversationItemSystemMessage.Object object_)
Identifier for the API object being returned - always
realtime.item
. Optional when creating a new item.
-
object_
final RealtimeConversationItemSystemMessage.Builder object_(JsonField<RealtimeConversationItemSystemMessage.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 RealtimeConversationItemSystemMessage.Builder status(RealtimeConversationItemSystemMessage.Status status)
The status of the item. Has no effect on the conversation.
-
status
final RealtimeConversationItemSystemMessage.Builder status(JsonField<RealtimeConversationItemSystemMessage.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 RealtimeConversationItemSystemMessage.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RealtimeConversationItemSystemMessage.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RealtimeConversationItemSystemMessage.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RealtimeConversationItemSystemMessage.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RealtimeConversationItemSystemMessage.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RealtimeConversationItemSystemMessage build()
Returns an immutable instance of RealtimeConversationItemSystemMessage.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.content()
-
-
-
-