public class HangoutsChat.Spaces.Messages extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
HangoutsChat.Spaces.Messages.Attachments
The "attachments" collection of methods.
|
class |
HangoutsChat.Spaces.Messages.Create |
class |
HangoutsChat.Spaces.Messages.Delete |
class |
HangoutsChat.Spaces.Messages.Get |
class |
HangoutsChat.Spaces.Messages.List |
class |
HangoutsChat.Spaces.Messages.Patch |
class |
HangoutsChat.Spaces.Messages.Reactions
The "reactions" collection of methods.
|
class |
HangoutsChat.Spaces.Messages.Update |
| Constructor and Description |
|---|
Messages() |
| Modifier and Type | Method and Description |
|---|---|
HangoutsChat.Spaces.Messages.Attachments |
attachments()
An accessor for creating requests from the Attachments collection.
|
HangoutsChat.Spaces.Messages.Create |
create(String parent,
Message content)
Creates a message in a Google Chat space.
|
HangoutsChat.Spaces.Messages.Delete |
delete(String name)
Deletes a message.
|
HangoutsChat.Spaces.Messages.Get |
get(String name)
Returns details about a message.
|
HangoutsChat.Spaces.Messages.List |
list(String parent)
Lists messages in a space that the caller is a member of, including messages from blocked members
and spaces.
|
HangoutsChat.Spaces.Messages.Patch |
patch(String name,
Message content)
Updates a message.
|
HangoutsChat.Spaces.Messages.Reactions |
reactions()
An accessor for creating requests from the Reactions collection.
|
HangoutsChat.Spaces.Messages.Update |
update(String name,
Message content)
Updates a message.
|
public HangoutsChat.Spaces.Messages.Create create(String parent, Message content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. The resource name of the space in which to create a message. Format: `spaces/{space}`content - the MessageIOExceptionpublic HangoutsChat.Spaces.Messages.Delete delete(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. Resource name of the message that you want to delete, in the form `spaces/messages`
Example: `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`IOExceptionpublic HangoutsChat.Spaces.Messages.Get get(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. Resource name of the message to retrieve. Format: `spaces/{space}/messages/{message}` If
the message begins with `client-`, then it has a custom name assigned by a Chat app that
created it with the Chat REST API. That Chat app (but not others) can pass the custom name
to get, update, or delete the message. To learn more, see [create and name a message]
(https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message).IOExceptionpublic HangoutsChat.Spaces.Messages.List list(String parent) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. The resource name of the space to list messages from. Format: `spaces/{space}`IOExceptionpublic HangoutsChat.Spaces.Messages.Patch patch(String name, Message content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Resource name in the form `spaces/messages`. Example:
`spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`content - the MessageIOExceptionpublic HangoutsChat.Spaces.Messages.Update update(String name, Message content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Resource name in the form `spaces/messages`. Example:
`spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`content - the MessageIOExceptionpublic HangoutsChat.Spaces.Messages.Attachments attachments()
The typical use is:
HangoutsChat chat = new HangoutsChat(...);HangoutsChat.Attachments.List request = chat.attachments().list(parameters ...)
public HangoutsChat.Spaces.Messages.Reactions reactions()
The typical use is:
HangoutsChat chat = new HangoutsChat(...);HangoutsChat.Reactions.List request = chat.reactions().list(parameters ...)
Copyright © 2011–2023 Google. All rights reserved.