Class DeleteMessageRequest
Request to delete a message.
Implements
Namespace: Google.Apps.Chat.V1
Assembly: Google.Apps.Chat.V1.dll
Syntax
public sealed class DeleteMessageRequest : IMessage<DeleteMessageRequest>, IEquatable<DeleteMessageRequest>, IDeepCloneable<DeleteMessageRequest>, IBufferMessage, IMessage
Constructors
DeleteMessageRequest()
Declaration
public DeleteMessageRequest()
DeleteMessageRequest(DeleteMessageRequest)
Declaration
public DeleteMessageRequest(DeleteMessageRequest other)
Parameters
Type | Name | Description |
---|---|---|
DeleteMessageRequest | other |
Properties
Force
When true
, deleting a message also deletes its threaded replies. When
false
, if a message has threaded replies, deletion fails.
Only applies when authenticating as a user. Has no effect when [authenticating as a Chat app] (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
Declaration
public bool Force { get; set; }
Property Value
Type | Description |
---|---|
bool |
MessageName
MessageName-typed view over the Name resource name property.
Declaration
public MessageName MessageName { get; set; }
Property Value
Type | Description |
---|---|
MessageName |
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/workspace/chat/create-messages#name_a_created_message).
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |