Class MessageDelta
-
- All Implemented Interfaces:
public final class MessageDeltaThe delta containing the fields that have changed on the Message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMessageDelta.BuilderA builder for MessageDelta.
public final classMessageDelta.RoleThe entity that produced the message. One of
userorassistant.
-
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.BuildertoBuilder()final MessageDeltavalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static MessageDelta.Builderbuilder()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
userorassistant.
-
_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()
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 MessageDelta.Builder builder()
Returns a mutable builder for constructing an instance of MessageDelta.
-
-
-
-