- Resource: SpaceEvent
- MessageCreatedEventData
- MessageUpdatedEventData
- MessageDeletedEventData
- MessageBatchCreatedEventData
- MessageBatchUpdatedEventData
- MessageBatchDeletedEventData
- SpaceUpdatedEventData
- SpaceBatchUpdatedEventData
- MembershipCreatedEventData
- MembershipUpdatedEventData
- MembershipDeletedEventData
- MembershipBatchCreatedEventData
- MembershipBatchUpdatedEventData
- MembershipBatchDeletedEventData
- ReactionCreatedEventData
- ReactionDeletedEventData
- ReactionBatchCreatedEventData
- ReactionBatchDeletedEventData
- Methods
Resource: SpaceEvent
An event that represents a change or activity in a Google Chat space. To learn more, see Work with events from Google Chat.
JSON representation |
---|
{ "name": string, "eventTime": string, "eventType": string, // Union field |
Fields | |
---|---|
name |
Resource name of the space event. Format: |
event |
Time when the event occurred. |
event |
Type of space event. Each event type has a batch version, which represents multiple instances of the event type that occur in a short period of time. For Supported event types for messages:
Supported event types for memberships:
Supported event types for reactions:
Supported event types about the space:
|
Union field
|
|
message |
Event payload for a new message. Event type: |
message |
Event payload for an updated message. Event type: |
message |
Event payload for a deleted message. Event type: |
message |
Event payload for multiple new messages. Event type: |
message |
Event payload for multiple updated messages. Event type: |
message |
Event payload for multiple deleted messages. Event type: |
space |
Event payload for a space update. Event type: |
space |
Event payload for multiple updates to a space. Event type: |
membership |
Event payload for a new membership. Event type: |
membership |
Event payload for an updated membership. Event type: |
membership |
Event payload for a deleted membership. Event type: |
membership |
Event payload for multiple new memberships. Event type: |
membership |
Event payload for multiple updated memberships. Event type: |
membership |
Event payload for multiple deleted memberships. Event type: |
reaction |
Event payload for a new reaction. Event type: |
reaction |
Event payload for a deleted reaction. Event type: |
reaction |
Event payload for multiple new reactions. Event type: |
reaction |
Event payload for multiple deleted reactions. Event type: |
MessageCreatedEventData
Event payload for a new message.
Event type: google.workspace.chat.message.v1.created
JSON representation |
---|
{
"message": {
object ( |
Fields | |
---|---|
message |
The new message. |
MessageUpdatedEventData
Event payload for an updated message.
Event type: google.workspace.chat.message.v1.updated
JSON representation |
---|
{
"message": {
object ( |
Fields | |
---|---|
message |
The updated message. |
MessageDeletedEventData
Event payload for a deleted message.
Event type: google.workspace.chat.message.v1.deleted
JSON representation |
---|
{
"message": {
object ( |
Fields | |
---|---|
message |
The deleted message. Only the |
MessageBatchCreatedEventData
Event payload for multiple new messages.
Event type: google.workspace.chat.message.v1.batchCreated
JSON representation |
---|
{
"messages": [
{
object ( |
Fields | |
---|---|
messages[] |
A list of new messages. |
MessageBatchUpdatedEventData
Event payload for multiple updated messages.
Event type: google.workspace.chat.message.v1.batchUpdated
JSON representation |
---|
{
"messages": [
{
object ( |
Fields | |
---|---|
messages[] |
A list of updated messages. |
MessageBatchDeletedEventData
Event payload for multiple deleted messages.
Event type: google.workspace.chat.message.v1.batchDeleted
JSON representation |
---|
{
"messages": [
{
object ( |
Fields | |
---|---|
messages[] |
A list of deleted messages. |
SpaceUpdatedEventData
Event payload for an updated space.
Event type: google.workspace.chat.space.v1.updated
JSON representation |
---|
{
"space": {
object ( |
Fields | |
---|---|
space |
The updated space. |
SpaceBatchUpdatedEventData
Event payload for multiple updates to a space.
Event type: google.workspace.chat.space.v1.batchUpdated
JSON representation |
---|
{
"spaces": [
{
object ( |
Fields | |
---|---|
spaces[] |
A list of updated spaces. |
MembershipCreatedEventData
Event payload for a new membership.
Event type: google.workspace.chat.membership.v1.created
.
JSON representation |
---|
{
"membership": {
object ( |
Fields | |
---|---|
membership |
The new membership. |
MembershipUpdatedEventData
Event payload for an updated membership.
Event type: google.workspace.chat.membership.v1.updated
JSON representation |
---|
{
"membership": {
object ( |
Fields | |
---|---|
membership |
The updated membership. |
MembershipDeletedEventData
Event payload for a deleted membership.
Event type: google.workspace.chat.membership.v1.deleted
JSON representation |
---|
{
"membership": {
object ( |
Fields | |
---|---|
membership |
The deleted membership. Only the |
MembershipBatchCreatedEventData
Event payload for multiple new memberships.
Event type: google.workspace.chat.membership.v1.batchCreated
JSON representation |
---|
{
"memberships": [
{
object ( |
Fields | |
---|---|
memberships[] |
A list of new memberships. |
MembershipBatchUpdatedEventData
Event payload for multiple updated memberships.
Event type: google.workspace.chat.membership.v1.batchUpdated
JSON representation |
---|
{
"memberships": [
{
object ( |
Fields | |
---|---|
memberships[] |
A list of updated memberships. |
MembershipBatchDeletedEventData
Event payload for multiple deleted memberships.
Event type: google.workspace.chat.membership.v1.batchDeleted
JSON representation |
---|
{
"memberships": [
{
object ( |
Fields | |
---|---|
memberships[] |
A list of deleted memberships. |
ReactionCreatedEventData
Event payload for a new reaction.
Event type: google.workspace.chat.reaction.v1.created
JSON representation |
---|
{
"reaction": {
object ( |
Fields | |
---|---|
reaction |
The new reaction. |
ReactionDeletedEventData
Event payload for a deleted reaction.
Type: google.workspace.chat.reaction.v1.deleted
JSON representation |
---|
{
"reaction": {
object ( |
Fields | |
---|---|
reaction |
The deleted reaction. |
ReactionBatchCreatedEventData
Event payload for multiple new reactions.
Event type: google.workspace.chat.reaction.v1.batchCreated
JSON representation |
---|
{
"reactions": [
{
object ( |
Fields | |
---|---|
reactions[] |
A list of new reactions. |
ReactionBatchDeletedEventData
Event payload for multiple deleted reactions.
Event type: google.workspace.chat.reaction.v1.batchDeleted
JSON representation |
---|
{
"reactions": [
{
object ( |
Fields | |
---|---|
reactions[] |
A list of deleted reactions. |
Methods |
|
---|---|
|
Returns an event from a Google Chat space. |
|
Lists events from a Google Chat space. |