Class Thread
A thread in a Google Chat space. For example usage, see Start or reply to a message thread.
If you specify a thread when creating a message, you can set the
messageReplyOption
field to determine what happens if no matching thread is found.
Namespace: Google.Apps.Chat.V1
Assembly: Google.Apps.Chat.V1.dll
Syntax
public sealed class Thread : IMessage<Thread>, IEquatable<Thread>, IDeepCloneable<Thread>, IBufferMessage, IMessage
Constructors
Thread()
Declaration
public Thread()
Thread(Thread)
Declaration
public Thread(Thread other)
Parameters
Type | Name | Description |
---|---|---|
Thread | other |
Properties
Name
Resource name of the thread.
Example: spaces/{space}/threads/{thread}
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
ThreadKey
Optional. Input for creating or updating a thread. Otherwise, output only. ID for the thread. Supports up to 4000 characters.
This ID is unique to the Chat app that sets it. For example, if
multiple Chat apps create a message using the same thread key,
the messages are posted in different threads. To reply in a
thread created by a person or another Chat app, specify the thread name
field instead.
Declaration
public string ThreadKey { get; set; }
Property Value
Type | Description |
---|---|
string |
ThreadName
ThreadName-typed view over the Name resource name property.
Declaration
public ThreadName ThreadName { get; set; }
Property Value
Type | Description |
---|---|
ThreadName |