Class MessageDelta
-
- All Implemented Interfaces:
public final class MessageDelta
The delta containing the fields that have changed on the Message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
MessageDelta.Builder
A builder for MessageDelta.
public final class
MessageDelta.Role
The entity that produced the message. One of
user
orassistant
.
-
Method Summary
Modifier and Type Method Description final Optional<List<MessageContentDelta>>
content()
The content of the message in array of text and/or images. final Optional<MessageDelta.Role>
role()
The entity that produced the message. final JsonField<List<MessageContentDelta>>
_content()
Returns the raw JSON value of content. final JsonField<MessageDelta.Role>
_role()
Returns the raw JSON value of role. final Map<String, JsonValue>
_additionalProperties()
final MessageDelta.Builder
toBuilder()
final MessageDelta
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static MessageDelta.Builder
builder()
Returns a mutable builder for constructing an instance of MessageDelta. -
-
Method Detail
-
content
final Optional<List<MessageContentDelta>> content()
The content of the message in array of text and/or images.
-
role
final Optional<MessageDelta.Role> role()
The entity that produced the message. One of
user
orassistant
.
-
_content
final JsonField<List<MessageContentDelta>> _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<MessageDelta.Role> _role()
Returns the raw JSON value of role.
Unlike role, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final MessageDelta.Builder toBuilder()
-
validate
final MessageDelta validate()
-
builder
final static MessageDelta.Builder builder()
Returns a mutable builder for constructing an instance of MessageDelta.
-
-
-
-