Class ResponseInputMessageItem
-
- All Implemented Interfaces:
public final class ResponseInputMessageItem
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseInputMessageItem.BuilderA builder for ResponseInputMessageItem.
public final classResponseInputMessageItem.RoleThe role of the message input. One of
user,system, ordeveloper.public final classResponseInputMessageItem.StatusThe status of item. One of
in_progress,completed, orincomplete. Populated when items are returned via API.
-
Method Summary
Modifier and Type Method Description final Stringid()The unique ID of the message input. final List<ResponseInputContent>content()A list of one or many input items to the model, containing different content types. final ResponseInputMessageItem.Rolerole()The role of the message input. final JsonValue_type()The type of the message input. final Optional<ResponseInputMessageItem.Status>status()The status of item. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<List<ResponseInputContent>>_content()Returns the raw JSON value of content. final JsonField<ResponseInputMessageItem.Role>_role()Returns the raw JSON value of role. final JsonField<ResponseInputMessageItem.Status>_status()Returns the raw JSON value of status. final Map<String, JsonValue>_additionalProperties()final ResponseInputMessageItem.BuildertoBuilder()final ResponseInputMessageItemvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseInputMessageItem.Builderbuilder()Returns a mutable builder for constructing an instance of ResponseInputMessageItem. -
-
Method Detail
-
content
final List<ResponseInputContent> content()
A list of one or many input items to the model, containing different content types.
-
role
final ResponseInputMessageItem.Role role()
The role of the message input. One of
user,system, ordeveloper.
-
_type
final JsonValue _type()
The type of the message input. Always set to
message.Expected to always return the following:
JsonValue.from("message")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
status
final Optional<ResponseInputMessageItem.Status> status()
The status of item. One of
in_progress,completed, orincomplete. Populated when items are returned via API.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_content
final JsonField<List<ResponseInputContent>> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_role
final JsonField<ResponseInputMessageItem.Role> _role()
Returns the raw JSON value of role.
Unlike role, this method doesn't throw if the JSON field has an unexpected type.
-
_status
final JsonField<ResponseInputMessageItem.Status> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseInputMessageItem.Builder toBuilder()
-
validate
final ResponseInputMessageItem validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ResponseInputMessageItem.Builder builder()
Returns a mutable builder for constructing an instance of ResponseInputMessageItem.
The following fields are required:
.id() .content() .role()
-
-
-
-