Class MessageDeltaEvent
-
- All Implemented Interfaces:
public final class MessageDeltaEvent
Represents a message delta i.e. any changed fields on a message during streaming.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
MessageDeltaEvent.Builder
A builder for MessageDeltaEvent.
-
Method Summary
Modifier and Type Method Description final String
id()
The identifier of the message, which can be referenced in API endpoints. final MessageDelta
delta()
The delta containing the fields that have changed on the Message. final JsonValue
_object_()
The object type, which is always thread.message.delta
.final JsonField<String>
_id()
Returns the raw JSON value of id. final JsonField<MessageDelta>
_delta()
Returns the raw JSON value of delta. final Map<String, JsonValue>
_additionalProperties()
final MessageDeltaEvent.Builder
toBuilder()
final MessageDeltaEvent
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static MessageDeltaEvent.Builder
builder()
Returns a mutable builder for constructing an instance of MessageDeltaEvent. -
-
Method Detail
-
delta
final MessageDelta delta()
The delta containing the fields that have changed on the Message.
-
_object_
final JsonValue _object_()
The object type, which is always
thread.message.delta
.Expected to always return the following:
JsonValue.from("thread.message.delta")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_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.
-
_delta
final JsonField<MessageDelta> _delta()
Returns the raw JSON value of delta.
Unlike delta, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final MessageDeltaEvent.Builder toBuilder()
-
validate
final MessageDeltaEvent validate()
-
builder
final static MessageDeltaEvent.Builder builder()
Returns a mutable builder for constructing an instance of MessageDeltaEvent.
The following fields are required:
.id() .delta()
-
-
-
-