Google Chat V1 API - Class Google::Apps::Chat::V1::UpdateThreadReadStateRequest (v0.35.0)

Reference documentation and code samples for the Google Chat V1 API class Google::Apps::Chat::V1::UpdateThreadReadStateRequest.

Request message for UpdateThreadReadState API.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#thread_read_state

def thread_read_state() -> ::Google::Apps::Chat::V1::ThreadReadState
Returns
  • (::Google::Apps::Chat::V1::ThreadReadState) — Required. The thread read state and fields to update.

    Only supports updating read state for the calling user.

    To refer to the calling user, set one of the following:

    • The me alias. For example, users/me/spaces/{space}/threads/{thread}/threadReadState.

    • Their Workspace email address. For example, users/user@example.com/spaces/{space}/threads/{thread}/threadReadState.

    • Their user id. For example, users/123456789/spaces/{space}/threads/{thread}/threadReadState.

    Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState

#thread_read_state=

def thread_read_state=(value) -> ::Google::Apps::Chat::V1::ThreadReadState
Parameter
  • value (::Google::Apps::Chat::V1::ThreadReadState) — Required. The thread read state and fields to update.

    Only supports updating read state for the calling user.

    To refer to the calling user, set one of the following:

    • The me alias. For example, users/me/spaces/{space}/threads/{thread}/threadReadState.

    • Their Workspace email address. For example, users/user@example.com/spaces/{space}/threads/{thread}/threadReadState.

    • Their user id. For example, users/123456789/spaces/{space}/threads/{thread}/threadReadState.

    Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState

Returns
  • (::Google::Apps::Chat::V1::ThreadReadState) — Required. The thread read state and fields to update.

    Only supports updating read state for the calling user.

    To refer to the calling user, set one of the following:

    • The me alias. For example, users/me/spaces/{space}/threads/{thread}/threadReadState.

    • Their Workspace email address. For example, users/user@example.com/spaces/{space}/threads/{thread}/threadReadState.

    • Their user id. For example, users/123456789/spaces/{space}/threads/{thread}/threadReadState.

    Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState

#update_mask

def update_mask() -> ::Google::Protobuf::FieldMask
Returns
  • (::Google::Protobuf::FieldMask) — Required. The field paths to update. Currently supported field paths:

    • last_read_time

    When last_read_time is before the latest message create time, the thread appears as unread in the UI.

    To mark the thread as read, set last_read_time to a timestamp equal to or later than the latest message create time. Future timestamps are coerced to the current request time. Setting a negative timestamp (before 1970-01-01T00:00:00Z) returns an INVALID_ARGUMENT error.

#update_mask=

def update_mask=(value) -> ::Google::Protobuf::FieldMask
Parameter
  • value (::Google::Protobuf::FieldMask) — Required. The field paths to update. Currently supported field paths:

    • last_read_time

    When last_read_time is before the latest message create time, the thread appears as unread in the UI.

    To mark the thread as read, set last_read_time to a timestamp equal to or later than the latest message create time. Future timestamps are coerced to the current request time. Setting a negative timestamp (before 1970-01-01T00:00:00Z) returns an INVALID_ARGUMENT error.

Returns
  • (::Google::Protobuf::FieldMask) — Required. The field paths to update. Currently supported field paths:

    • last_read_time

    When last_read_time is before the latest message create time, the thread appears as unread in the UI.

    To mark the thread as read, set last_read_time to a timestamp equal to or later than the latest message create time. Future timestamps are coerced to the current request time. Setting a negative timestamp (before 1970-01-01T00:00:00Z) returns an INVALID_ARGUMENT error.