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.Patch |
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.
|
HangoutsChat.Spaces.Messages.Delete |
delete(String name)
Deletes a message.
|
HangoutsChat.Spaces.Messages.Get |
get(String name)
Returns a message.
|
HangoutsChat.Spaces.Messages.Patch |
patch(String name,
Message content)
Updates a message.
|
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 to be deleted, in the form "spaces/messages" Example:
spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBBIOExceptionpublic 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/crudl/messages#name_a_created_message).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 ...)
Copyright © 2011–2023 Google. All rights reserved.