Class MessageListPageResponse
-
- All Implemented Interfaces:
public final class MessageListPageResponse
An object representing a list of chat completion messages.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
MessageListPageResponse.Builder
A builder for MessageListPageResponse.
-
Method Summary
Modifier and Type Method Description final List<ChatCompletionStoreMessage>
data()
An array of chat completion message objects. final String
firstId()
The identifier of the first chat message in the data array. final Boolean
hasMore()
Indicates whether there are more chat messages available. final String
lastId()
The identifier of the last chat message in the data array. final JsonValue
_object_()
The type of this object. final JsonField<List<ChatCompletionStoreMessage>>
_data()
Returns the raw JSON value of data. final JsonField<String>
_firstId()
Returns the raw JSON value of firstId. final JsonField<Boolean>
_hasMore()
Returns the raw JSON value of hasMore. final JsonField<String>
_lastId()
Returns the raw JSON value of lastId. final Map<String, JsonValue>
_additionalProperties()
final MessageListPageResponse.Builder
toBuilder()
final MessageListPageResponse
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static MessageListPageResponse.Builder
builder()
Returns a mutable builder for constructing an instance of MessageListPageResponse. -
-
Method Detail
-
data
final List<ChatCompletionStoreMessage> data()
An array of chat completion message objects.
-
_object_
final JsonValue _object_()
The type of this object. It is always set to "list".
Expected to always return the following:
JsonValue.from("list")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_data
final JsonField<List<ChatCompletionStoreMessage>> _data()
Returns the raw JSON value of data.
Unlike data, this method doesn't throw if the JSON field has an unexpected type.
-
_firstId
final JsonField<String> _firstId()
Returns the raw JSON value of firstId.
Unlike firstId, this method doesn't throw if the JSON field has an unexpected type.
-
_hasMore
final JsonField<Boolean> _hasMore()
Returns the raw JSON value of hasMore.
Unlike hasMore, this method doesn't throw if the JSON field has an unexpected type.
-
_lastId
final JsonField<String> _lastId()
Returns the raw JSON value of lastId.
Unlike lastId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final MessageListPageResponse.Builder toBuilder()
-
validate
final MessageListPageResponse validate()
-
builder
final static MessageListPageResponse.Builder builder()
Returns a mutable builder for constructing an instance of MessageListPageResponse.
The following fields are required:
.data() .firstId() .hasMore() .lastId()
-
-
-
-