Struct google_api_proto::google::chat::v1::ListReactionsRequest
source · pub struct ListReactionsRequest {
pub parent: String,
pub page_size: i32,
pub page_token: String,
pub filter: String,
}
Expand description
Lists reactions to a message.
Fields§
§parent: String
Required. The message users reacted to.
Format: spaces/{space}/messages/{message}
page_size: i32
Optional. The maximum number of reactions returned. The service can return fewer reactions than this value. If unspecified, the default value is 25. The maximum value is 200; values above 200 are changed to 200.
page_token: String
Optional. (If resuming from a previous query.)
A page token received from a previous list reactions call. Provide this to retrieve the subsequent page.
When paginating, the filter value should match the call that provided the page token. Passing a different value might lead to unexpected results.
filter: String
Optional. A query filter.
You can filter reactions by
emoji
(either emoji.unicode
or emoji.custom_emoji.uid
) and
user
(user.name
).
To filter reactions for multiple emojis or users, join similar fields
with the OR
operator, such as emoji.unicode = "🙂" OR emoji.unicode = "👍"
and user.name = "users/AAAAAA" OR user.name = "users/BBBBBB"
.
To filter reactions by emoji and user, use the AND
operator, such as
emoji.unicode = "🙂" AND user.name = "users/AAAAAA"
.
If your query uses both AND
and OR
, group them with parentheses.
For example, the following queries are valid:
user.name = "users/{user}"
emoji.unicode = "🙂"
emoji.custom_emoji.uid = "{uid}"
emoji.unicode = "🙂" OR emoji.unicode = "👍"
emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}"
emoji.unicode = "🙂" AND user.name = "users/{user}"
(emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}")
AND user.name = "users/{user}"
The following queries are invalid:
emoji.unicode = "🙂" AND emoji.unicode = "👍"
emoji.unicode = "🙂" AND emoji.custom_emoji.uid = "{uid}"
emoji.unicode = "🙂" OR user.name = "users/{user}"
emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" OR
user.name = "users/{user}"
emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}"
AND user.name = "users/{user}"
Invalid queries are rejected by the server with an INVALID_ARGUMENT
error.
Trait Implementations§
source§impl Clone for ListReactionsRequest
impl Clone for ListReactionsRequest
source§fn clone(&self) -> ListReactionsRequest
fn clone(&self) -> ListReactionsRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ListReactionsRequest
impl Debug for ListReactionsRequest
source§impl Default for ListReactionsRequest
impl Default for ListReactionsRequest
source§impl Message for ListReactionsRequest
impl Message for ListReactionsRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ListReactionsRequest
impl PartialEq for ListReactionsRequest
source§fn eq(&self, other: &ListReactionsRequest) -> bool
fn eq(&self, other: &ListReactionsRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ListReactionsRequest
Auto Trait Implementations§
impl Freeze for ListReactionsRequest
impl RefUnwindSafe for ListReactionsRequest
impl Send for ListReactionsRequest
impl Sync for ListReactionsRequest
impl Unpin for ListReactionsRequest
impl UnwindSafe for ListReactionsRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request