Class ConversationItemDeletedEvent
-
- All Implemented Interfaces:
public final class ConversationItemDeletedEventReturned when an item in the conversation is deleted by the client with a
conversation.item.deleteevent. This event is used to synchronize the server's understanding of the conversation history with the client's view.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classConversationItemDeletedEvent.BuilderA builder for ConversationItemDeletedEvent.
-
Method Summary
Modifier and Type Method Description final StringeventId()The unique ID of the server event. final StringitemId()The ID of the item that was deleted. final JsonValue_type()The event type, must be conversation.item.deleted.final JsonField<String>_eventId()Returns the raw JSON value of eventId. final JsonField<String>_itemId()Returns the raw JSON value of itemId. final Map<String, JsonValue>_additionalProperties()final ConversationItemDeletedEvent.BuildertoBuilder()final ConversationItemDeletedEventvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ConversationItemDeletedEvent.Builderbuilder()Returns a mutable builder for constructing an instance of ConversationItemDeletedEvent. -
-
Method Detail
-
_type
final JsonValue _type()
The event type, must be
conversation.item.deleted.Expected to always return the following:
JsonValue.from("conversation.item.deleted")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_eventId
final JsonField<String> _eventId()
Returns the raw JSON value of eventId.
Unlike eventId, this method doesn't throw if the JSON field has an unexpected type.
-
_itemId
final JsonField<String> _itemId()
Returns the raw JSON value of itemId.
Unlike itemId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ConversationItemDeletedEvent.Builder toBuilder()
-
validate
final ConversationItemDeletedEvent validate()
-
builder
final static ConversationItemDeletedEvent.Builder builder()
Returns a mutable builder for constructing an instance of ConversationItemDeletedEvent.
The following fields are required:
.eventId() .itemId()
-
-
-
-