Class MessageListPageResponse.Builder
-
- All Implemented Interfaces:
public final class MessageListPageResponse.Builder
A builder for MessageListPageResponse.
-
-
Method Summary
-
-
Method Detail
-
data
final MessageListPageResponse.Builder data(List<ChatCompletionStoreMessage> data)
An array of chat completion message objects.
-
data
final MessageListPageResponse.Builder data(JsonField<List<ChatCompletionStoreMessage>> data)
Sets Builder.data to an arbitrary JSON value.
You should usually call Builder.data with a well-typed
List<ChatCompletionStoreMessage>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addData
final MessageListPageResponse.Builder addData(ChatCompletionStoreMessage data)
Adds a single ChatCompletionStoreMessage to Builder.data.
-
firstId
final MessageListPageResponse.Builder firstId(String firstId)
The identifier of the first chat message in the data array.
-
firstId
final MessageListPageResponse.Builder firstId(JsonField<String> firstId)
Sets Builder.firstId to an arbitrary JSON value.
You should usually call Builder.firstId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
hasMore
final MessageListPageResponse.Builder hasMore(Boolean hasMore)
Indicates whether there are more chat messages available.
-
hasMore
final MessageListPageResponse.Builder hasMore(JsonField<Boolean> hasMore)
Sets Builder.hasMore to an arbitrary JSON value.
You should usually call Builder.hasMore with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
lastId
final MessageListPageResponse.Builder lastId(String lastId)
The identifier of the last chat message in the data array.
-
lastId
final MessageListPageResponse.Builder lastId(JsonField<String> lastId)
Sets Builder.lastId to an arbitrary JSON value.
You should usually call Builder.lastId 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 MessageListPageResponse.Builder object_(JsonValue object_)
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("list")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final MessageListPageResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final MessageListPageResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final MessageListPageResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final MessageListPageResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final MessageListPageResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final MessageListPageResponse build()
Returns an immutable instance of MessageListPageResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.data() .firstId() .hasMore() .lastId()
-
-
-
-