All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.chat.v1.HangoutsChat.Spaces.SpaceEvents.html Maven / Gradle / Ivy

There is a newer version: v1-rev20241217-2.0.0
Show newest version






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.
    • Constructor Detail

      • SpaceEvents

        public SpaceEvents()
    • 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