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 Message
IOException
public HangoutsChat.Spaces.Messages.Delete delete(String name) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. Resource name of the message. Format: `spaces/{space}/messages/{message}` If you've set a
custom ID for your message, you can use the value from the `clientAssignedMessageId` field
for `{message}`. For details, see [Name a message]
(https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message).IOException
public HangoutsChat.Spaces.Messages.Get get(String name) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. Resource name of the message. Format: `spaces/{space}/messages/{message}` If you've set a
custom ID for your message, you can use the value from the `clientAssignedMessageId` field
for `{message}`. For details, see [Name a message]
(https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message).IOException
public 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}`IOException
public HangoutsChat.Spaces.Messages.Patch patch(String name, Message content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Resource name of the message. Format: `spaces/{space}/messages/{message}` Where `{space}` is the ID
of the space where the message is posted and `{message}` is a system-assigned ID for the
message. For example, `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`. If you set a
custom ID when you create a message, you can use this ID to specify the message in a
request by replacing `{message}` with the value from the `clientAssignedMessageId` field.
For example, `spaces/AAAAAAAAAAA/messages/client-custom-name`. For details, see [Name a me
ssage](https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_mes
sage).content
- the Message
IOException
public HangoutsChat.Spaces.Messages.Update update(String name, Message content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Resource name of the message. Format: `spaces/{space}/messages/{message}` Where `{space}` is the ID
of the space where the message is posted and `{message}` is a system-assigned ID for the
message. For example, `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`. If you set a
custom ID when you create a message, you can use this ID to specify the message in a
request by replacing `{message}` with the value from the `clientAssignedMessageId` field.
For example, `spaces/AAAAAAAAAAA/messages/client-custom-name`. For details, see [Name a me
ssage](https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_mes
sage).content
- the Message
IOException
public 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–2024 Google. All rights reserved.