ConversationEvent

Represents a notification sent to Pub/Sub subscribers for conversation lifecycle events.

JSON representation
{
  "conversation": string,
  "type": enum (Type),
  "errorStatus": {
    object (Status)
  },

  // Union field payload can be only one of the following:
  "newMessagePayload": {
    object (Message)
  }
  // End of list of possible types for union field payload.
}
Fields
conversation

string

Required. The unique identifier of the conversation this notification refers to. Format: projects/<Project ID>/conversations/<Conversation ID>.

type

enum (Type)

Required. The type of the event that this notification refers to.

errorStatus

object (Status)

Optional. More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.

Union field payload. Payload of conversation event. payload can be only one of the following:
newMessagePayload

object (Message)

Payload of NEW_MESSAGE event.