If you specify a thread when creating a message, you can set themessageReplyOptionfield to determine what happens if no matching thread is found.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#name
defname()->::String
Returns
(::String) — Identifier. Resource name of the thread.
Example:spaces/{space}/threads/{thread}
#name=
defname=(value)->::String
Parameter
value(::String) — Identifier. Resource name of the thread.
Example:spaces/{space}/threads/{thread}
Returns
(::String) — Identifier. Resource name of the thread.
Example:spaces/{space}/threads/{thread}
#thread_key
defthread_key()->::String
Returns
(::String) — 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 threadnamefield instead.
#thread_key=
defthread_key=(value)->::String
Parameter
value(::String) — 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 threadnamefield instead.
Returns
(::String) — 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 threadnamefield instead.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Chat V1 API - Class Google::Apps::Chat::V1::Thread (v0.14.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.14.0 (latest)](/ruby/docs/reference/google-apps-chat-v1/latest/Google-Apps-Chat-V1-Thread)\n- [0.13.0](/ruby/docs/reference/google-apps-chat-v1/0.13.0/Google-Apps-Chat-V1-Thread)\n- [0.12.0](/ruby/docs/reference/google-apps-chat-v1/0.12.0/Google-Apps-Chat-V1-Thread)\n- [0.11.1](/ruby/docs/reference/google-apps-chat-v1/0.11.1/Google-Apps-Chat-V1-Thread)\n- [0.10.0](/ruby/docs/reference/google-apps-chat-v1/0.10.0/Google-Apps-Chat-V1-Thread)\n- [0.9.1](/ruby/docs/reference/google-apps-chat-v1/0.9.1/Google-Apps-Chat-V1-Thread)\n- [0.8.0](/ruby/docs/reference/google-apps-chat-v1/0.8.0/Google-Apps-Chat-V1-Thread)\n- [0.7.0](/ruby/docs/reference/google-apps-chat-v1/0.7.0/Google-Apps-Chat-V1-Thread)\n- [0.6.0](/ruby/docs/reference/google-apps-chat-v1/0.6.0/Google-Apps-Chat-V1-Thread)\n- [0.5.1](/ruby/docs/reference/google-apps-chat-v1/0.5.1/Google-Apps-Chat-V1-Thread)\n- [0.4.0](/ruby/docs/reference/google-apps-chat-v1/0.4.0/Google-Apps-Chat-V1-Thread)\n- [0.3.1](/ruby/docs/reference/google-apps-chat-v1/0.3.1/Google-Apps-Chat-V1-Thread)\n- [0.2.0](/ruby/docs/reference/google-apps-chat-v1/0.2.0/Google-Apps-Chat-V1-Thread)\n- [0.1.2](/ruby/docs/reference/google-apps-chat-v1/0.1.2/Google-Apps-Chat-V1-Thread) \nReference documentation and code samples for the Google Chat V1 API class Google::Apps::Chat::V1::Thread.\n\nA thread in a Google Chat space. For example usage, see\n[Start or reply to a message\nthread](https://developers.google.com/workspace/chat/create-messages#create-message-thread).\n\n\n\u003cbr /\u003e\n\nIf you specify a thread when creating a message, you can set the\n[`messageReplyOption`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages/create#messagereplyoption)\nfield to determine what happens if no matching thread is found. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Identifier. Resource name of the thread.\n\n Example: `spaces/{space}/threads/{thread}`\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Identifier. Resource name of the thread.\n\n\nExample: `spaces/{space}/threads/{thread}` \n**Returns**\n\n- (::String) --- Identifier. Resource name of the thread.\n\n Example: `spaces/{space}/threads/{thread}`\n\n### #thread_key\n\n def thread_key() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. Input for creating or updating a thread. Otherwise, output only. ID for the thread. Supports up to 4000 characters.\n\n This ID is unique to the Chat app that sets it. For example, if\n multiple Chat apps create a message using the same thread key,\n the messages are posted in different threads. To reply in a\n thread created by a person or another Chat app, specify the thread `name`\n field instead.\n\n### #thread_key=\n\n def thread_key=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. Input for creating or updating a thread. Otherwise, output only. ID for the thread. Supports up to 4000 characters.\n\n\n This ID is unique to the Chat app that sets it. For example, if\n multiple Chat apps create a message using the same thread key,\n the messages are posted in different threads. To reply in a\n thread created by a person or another Chat app, specify the thread `name`\nfield instead. \n**Returns**\n\n- (::String) --- Optional. Input for creating or updating a thread. Otherwise, output only. ID for the thread. Supports up to 4000 characters.\n\n This ID is unique to the Chat app that sets it. For example, if\n multiple Chat apps create a message using the same thread key,\n the messages are posted in different threads. To reply in a\n thread created by a person or another Chat app, specify the thread `name`\n field instead."]]