Class SpaceEvent
An event that represents a change or activity in a Google Chat space. To learn more, see Work with events from Google Chat.
Implements
Namespace: Google.Apps.Chat.V1
Assembly: Google.Apps.Chat.V1.dll
Syntax
public sealed class SpaceEvent : IMessage<SpaceEvent>, IEquatable<SpaceEvent>, IDeepCloneable<SpaceEvent>, IBufferMessage, IMessage
Constructors
SpaceEvent()
Declaration
public SpaceEvent()
SpaceEvent(SpaceEvent)
Declaration
public SpaceEvent(SpaceEvent other)
Parameters
| Type | Name | Description |
|---|---|---|
| SpaceEvent | other |
Properties
EventTime
Time when the event occurred.
Declaration
public Timestamp EventTime { get; set; }
Property Value
| Type | Description |
|---|---|
| Timestamp |
EventType
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 spaceEvents.list() requests, omit batch event types
in your query filter. By default, the server returns both event type and
its batch version.
Supported event types for messages:
- New message:
google.workspace.chat.message.v1.created - Updated message:
google.workspace.chat.message.v1.updated - Deleted message:
google.workspace.chat.message.v1.deleted - Multiple new messages:
google.workspace.chat.message.v1.batchCreated - Multiple updated messages:
google.workspace.chat.message.v1.batchUpdated - Multiple deleted messages:
google.workspace.chat.message.v1.batchDeleted
Supported event types for memberships:
- New membership:
google.workspace.chat.membership.v1.created - Updated membership:
google.workspace.chat.membership.v1.updated - Deleted membership:
google.workspace.chat.membership.v1.deleted - Multiple new memberships:
google.workspace.chat.membership.v1.batchCreated - Multiple updated memberships:
google.workspace.chat.membership.v1.batchUpdated - Multiple deleted memberships:
google.workspace.chat.membership.v1.batchDeleted
Supported event types for reactions:
- New reaction:
google.workspace.chat.reaction.v1.created - Deleted reaction:
google.workspace.chat.reaction.v1.deleted - Multiple new reactions:
google.workspace.chat.reaction.v1.batchCreated - Multiple deleted reactions:
google.workspace.chat.reaction.v1.batchDeleted
Supported event types about the space:
- Updated space:
google.workspace.chat.space.v1.updated - Multiple space updates:
google.workspace.chat.space.v1.batchUpdated
Declaration
public string EventType { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
MembershipBatchCreatedEventData
Event payload for multiple new memberships.
Event type: google.workspace.chat.membership.v1.batchCreated
Declaration
public MembershipBatchCreatedEventData MembershipBatchCreatedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| MembershipBatchCreatedEventData |
MembershipBatchDeletedEventData
Event payload for multiple deleted memberships.
Event type: google.workspace.chat.membership.v1.batchDeleted
Declaration
public MembershipBatchDeletedEventData MembershipBatchDeletedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| MembershipBatchDeletedEventData |
MembershipBatchUpdatedEventData
Event payload for multiple updated memberships.
Event type: google.workspace.chat.membership.v1.batchUpdated
Declaration
public MembershipBatchUpdatedEventData MembershipBatchUpdatedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| MembershipBatchUpdatedEventData |
MembershipCreatedEventData
Event payload for a new membership.
Event type: google.workspace.chat.membership.v1.created
Declaration
public MembershipCreatedEventData MembershipCreatedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| MembershipCreatedEventData |
MembershipDeletedEventData
Event payload for a deleted membership.
Event type: google.workspace.chat.membership.v1.deleted
Declaration
public MembershipDeletedEventData MembershipDeletedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| MembershipDeletedEventData |
MembershipUpdatedEventData
Event payload for an updated membership.
Event type: google.workspace.chat.membership.v1.updated
Declaration
public MembershipUpdatedEventData MembershipUpdatedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| MembershipUpdatedEventData |
MessageBatchCreatedEventData
Event payload for multiple new messages.
Event type: google.workspace.chat.message.v1.batchCreated
Declaration
public MessageBatchCreatedEventData MessageBatchCreatedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| MessageBatchCreatedEventData |
MessageBatchDeletedEventData
Event payload for multiple deleted messages.
Event type: google.workspace.chat.message.v1.batchDeleted
Declaration
public MessageBatchDeletedEventData MessageBatchDeletedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| MessageBatchDeletedEventData |
MessageBatchUpdatedEventData
Event payload for multiple updated messages.
Event type: google.workspace.chat.message.v1.batchUpdated
Declaration
public MessageBatchUpdatedEventData MessageBatchUpdatedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| MessageBatchUpdatedEventData |
MessageCreatedEventData
Event payload for a new message.
Event type: google.workspace.chat.message.v1.created
Declaration
public MessageCreatedEventData MessageCreatedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| MessageCreatedEventData |
MessageDeletedEventData
Event payload for a deleted message.
Event type: google.workspace.chat.message.v1.deleted
Declaration
public MessageDeletedEventData MessageDeletedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| MessageDeletedEventData |
MessageUpdatedEventData
Event payload for an updated message.
Event type: google.workspace.chat.message.v1.updated
Declaration
public MessageUpdatedEventData MessageUpdatedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| MessageUpdatedEventData |
Name
Resource name of the space event.
Format: spaces/{space}/spaceEvents/{spaceEvent}
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PayloadCase
Declaration
public SpaceEvent.PayloadOneofCase PayloadCase { get; }
Property Value
| Type | Description |
|---|---|
| SpaceEvent.PayloadOneofCase |
ReactionBatchCreatedEventData
Event payload for multiple new reactions.
Event type: google.workspace.chat.reaction.v1.batchCreated
Declaration
public ReactionBatchCreatedEventData ReactionBatchCreatedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| ReactionBatchCreatedEventData |
ReactionBatchDeletedEventData
Event payload for multiple deleted reactions.
Event type: google.workspace.chat.reaction.v1.batchDeleted
Declaration
public ReactionBatchDeletedEventData ReactionBatchDeletedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| ReactionBatchDeletedEventData |
ReactionCreatedEventData
Event payload for a new reaction.
Event type: google.workspace.chat.reaction.v1.created
Declaration
public ReactionCreatedEventData ReactionCreatedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| ReactionCreatedEventData |
ReactionDeletedEventData
Event payload for a deleted reaction.
Event type: google.workspace.chat.reaction.v1.deleted
Declaration
public ReactionDeletedEventData ReactionDeletedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| ReactionDeletedEventData |
SpaceBatchUpdatedEventData
Event payload for multiple updates to a space.
Event type: google.workspace.chat.space.v1.batchUpdated
Declaration
public SpaceBatchUpdatedEventData SpaceBatchUpdatedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| SpaceBatchUpdatedEventData |
SpaceEventName
SpaceEventName-typed view over the Name resource name property.
Declaration
public SpaceEventName SpaceEventName { get; set; }
Property Value
| Type | Description |
|---|---|
| SpaceEventName |
SpaceUpdatedEventData
Event payload for a space update.
Event type: google.workspace.chat.space.v1.updated
Declaration
public SpaceUpdatedEventData SpaceUpdatedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| SpaceUpdatedEventData |