Google Chat V1 API - Class Google::Apps::Chat::V1::Thread (v0.5.1)

Reference documentation and code samples for the Google Chat V1 API class Google::Apps::Chat::V1::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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#name

def name() -> ::String
Returns
  • (::String) — Resource name of the thread.

    Example: spaces/{space}/threads/{thread}

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Resource name of the thread.

    Example: spaces/{space}/threads/{thread}

Returns
  • (::String) — Resource name of the thread.

    Example: spaces/{space}/threads/{thread}

#thread_key

def thread_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 thread name field instead.

#thread_key=

def thread_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 thread name field 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 thread name field instead.