target.apidocs.com.google.api.services.chat.v1.HangoutsChat.Spaces.SpaceEvents.html Maven / Gradle / Ivy
HangoutsChat.Spaces.SpaceEvents (Google Chat API v1-rev20240829-2.0.0)
com.google.api.services.chat.v1
Class HangoutsChat.Spaces.SpaceEvents
- java.lang.Object
-
- com.google.api.services.chat.v1.HangoutsChat.Spaces.SpaceEvents
-
- Enclosing class:
- HangoutsChat.Spaces
public class HangoutsChat.Spaces.SpaceEvents
extends Object
The "spaceEvents" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
HangoutsChat.Spaces.SpaceEvents.Get
class
HangoutsChat.Spaces.SpaceEvents.List
-
Constructor Summary
Constructors
Constructor and Description
SpaceEvents()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
HangoutsChat.Spaces.SpaceEvents.Get
get(String name)
Returns an event from a Google Chat space.
HangoutsChat.Spaces.SpaceEvents.List
list(String parent)
Lists events from a Google Chat space.
-
-
Method Detail
-
get
public HangoutsChat.Spaces.SpaceEvents.Get get(String name)
throws IOException
Returns an event from a Google Chat space. The [event payload](https://developers.google.com/work
space/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) contains the
most recent version of the resource that changed. For example, if you request an event about a
new message but the message was later updated, the server returns the updated `Message` resource
in the event payload. Requires [user
authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
To get an event, the authenticated user must be a member of the space. For an example, see [Get
details about an event from a Google Chat
space](https://developers.google.com/workspace/chat/get-space-event).
Create a request for the method "spaceEvents.get".
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:
name
- Required. The resource name of the space event. Format: `spaces/{space}/spaceEvents/{spaceEvent}`
- Returns:
- the request
- Throws:
IOException
-
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. Requires [user
authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
To list events, the authenticated user 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
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy