Class: Google::Apis::ChatV1::Thread
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::Thread
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#name ⇒ String
Identifier.
-
#thread_key ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Thread
constructor
A new instance of Thread.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Thread
Returns a new instance of Thread.
5625 5626 5627 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5625 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Identifier. Resource name of the thread. Example: spaces/
space/threads/
thread`
Corresponds to the JSON property
name`
5613 5614 5615 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5613 def name @name end |
#thread_key ⇒ 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 thread name
field instead.
Corresponds to the JSON property threadKey
5623 5624 5625 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5623 def thread_key @thread_key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5630 5631 5632 5633 |
# File 'lib/google/apis/chat_v1/classes.rb', line 5630 def update!(**args) @name = args[:name] if args.key?(:name) @thread_key = args[:thread_key] if args.key?(:thread_key) end |