Class CreateMessageRequest
Creates a message.
Implements
Namespace: Google.Apps.Chat.V1
Assembly: Google.Apps.Chat.V1.dll
Syntax
public sealed class CreateMessageRequest : IMessage<CreateMessageRequest>, IEquatable<CreateMessageRequest>, IDeepCloneable<CreateMessageRequest>, IBufferMessage, IMessage
Constructors
CreateMessageRequest()
Declaration
public CreateMessageRequest()
CreateMessageRequest(CreateMessageRequest)
Declaration
public CreateMessageRequest(CreateMessageRequest other)
Parameters
Type | Name | Description |
---|---|---|
CreateMessageRequest | other |
Properties
Message
Required. Message body.
Declaration
public Message Message { get; set; }
Property Value
Type | Description |
---|---|
Message |
MessageId
Optional. A custom ID for a message. Lets Chat apps get, update, or delete
a message without needing to store the system-assigned ID in the message's
resource name (represented in the message name
field).
The value for this field must meet the following requirements:
- Begins with
client-
. For example,client-custom-name
is a valid custom ID, butcustom-name
is not. - Contains up to 63 characters and only lowercase letters, numbers, and hyphens.
- Is unique within a space. A Chat app can't use the same custom ID for different messages.
For details, see Name a message.
Declaration
public string MessageId { get; set; }
Property Value
Type | Description |
---|---|
string |
MessageReplyOption
Optional. Specifies whether a message starts a thread or replies to one. Only supported in named spaces.
Declaration
public CreateMessageRequest.Types.MessageReplyOption MessageReplyOption { get; set; }
Property Value
Type | Description |
---|---|
CreateMessageRequest.Types.MessageReplyOption |
Parent
Required. The resource name of the space in which to create a message.
Format: spaces/{space}
Declaration
public string Parent { get; set; }
Property Value
Type | Description |
---|---|
string |
ParentAsSpaceName
Declaration
public SpaceName ParentAsSpaceName { get; set; }
Property Value
Type | Description |
---|---|
SpaceName |
RequestId
Optional. A unique request ID for this message. Specifying an existing request ID returns the message created with that ID instead of creating a new message.
Declaration
public string RequestId { get; set; }
Property Value
Type | Description |
---|---|
string |
ThreadKey
Optional. Deprecated: Use
[thread.thread_key][google.chat.v1.Thread.thread_key] instead. ID for the
thread. Supports up to 4000 characters. To start or add to a thread, create
a message and specify a threadKey
or the
[thread.name][google.chat.v1.Thread.name]. For example usage, see Start or
reply to a message
thread.
Declaration
[Obsolete]
public string ThreadKey { get; set; }
Property Value
Type | Description |
---|---|
string |