Show / Hide Table of Contents

Class CreateMessageRequest

Creates a message.

Inheritance
object
CreateMessageRequest
Implements
IMessage<CreateMessageRequest>
IEquatable<CreateMessageRequest>
IDeepCloneable<CreateMessageRequest>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
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

CreateMessageNotificationOptions

Optional. Controls the notification behavior when the message is posted. To learn more, see Force notifications or send silent messages.

Declaration
public CreateMessageNotificationOptions CreateMessageNotificationOptions { get; set; }
Property Value
Type Description
CreateMessageNotificationOptions

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, but custom-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.

When responding to user interactions, this field is ignored. For interactions within a thread, the reply is created in the same thread. Otherwise, the reply is created as a new thread.

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

SpaceName-typed view over the Parent resource name property.

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
In this article
Back to top Generated by DocFX