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