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-
(::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
mealias. 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-
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
mealias. 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
-
(::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
mealias. 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-
(::Google::Protobuf::FieldMask) — Required. The field paths to update. Currently supported field paths:
last_read_time
When
last_read_timeis before the latest message create time, the thread appears as unread in the UI.To mark the thread as read, set
last_read_timeto 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 (before1970-01-01T00:00:00Z) returns anINVALID_ARGUMENTerror.
#update_mask=
def update_mask=(value) -> ::Google::Protobuf::FieldMask-
value (::Google::Protobuf::FieldMask) — Required. The field paths to update. Currently supported field paths:
last_read_time
When
last_read_timeis before the latest message create time, the thread appears as unread in the UI.To mark the thread as read, set
last_read_timeto 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 (before1970-01-01T00:00:00Z) returns anINVALID_ARGUMENTerror.
-
(::Google::Protobuf::FieldMask) — Required. The field paths to update. Currently supported field paths:
last_read_time
When
last_read_timeis before the latest message create time, the thread appears as unread in the UI.To mark the thread as read, set
last_read_timeto 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 (before1970-01-01T00:00:00Z) returns anINVALID_ARGUMENTerror.