list
public HangoutsChat.Spaces.SpaceEvents.List list(String parent)
throws IOException
Lists events from a Google Chat space. For each event, the [payload](https://developers.google.co
m/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload)
contains the most recent version of the Chat resource. For example, if you list events about new
space members, the server returns `Membership` resources that contain the latest membership
details. If new members were removed during the requested period, the event payload contains an
empty `Membership` resource. Supports the following types of
[authentication](https://developers.google.com/workspace/chat/authenticate-authorize) with an
[authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-
api-scopes) appropriate for reading the requested data: - [App
authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer
Preview](https://developers.google.com/workspace/preview) with one of the following authorization
scopes: - `https://www.googleapis.com/auth/chat.app.spaces` -
`https://www.googleapis.com/auth/chat.app.messages.readonly` -
`https://www.googleapis.com/auth/chat.app.memberships` - [User
authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
with one of the following authorization scopes: -
`https://www.googleapis.com/auth/chat.spaces.readonly` -
`https://www.googleapis.com/auth/chat.spaces` -
`https://www.googleapis.com/auth/chat.messages.readonly` -
`https://www.googleapis.com/auth/chat.messages` -
`https://www.googleapis.com/auth/chat.messages.reactions.readonly` -
`https://www.googleapis.com/auth/chat.messages.reactions` -
`https://www.googleapis.com/auth/chat.memberships.readonly` -
`https://www.googleapis.com/auth/chat.memberships` To list events, the authenticated caller must
be a member of the space. For an example, see [List events from a Google Chat
space](https://developers.google.com/workspace/chat/list-space-events).
Create a request for the method "spaceEvents.list".
This request holds the parameters needed by the chat server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
- Parameters:
parent - Required. Resource name of the [Google Chat
space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) where
the events occurred. Format: `spaces/{space}`.
- Returns:
- the request
- Throws:
IOException