Struct google_api_proto::google::chat::v1::ListMembershipsRequest
source · pub struct ListMembershipsRequest {
pub parent: String,
pub page_size: i32,
pub page_token: String,
pub filter: String,
pub show_groups: bool,
pub show_invited: bool,
}Expand description
Request message for listing memberships.
Fields§
§parent: StringRequired. The resource name of the space for which to fetch a membership list.
Format: spaces/{space}
page_size: i32Optional. The maximum number of memberships to return. The service might return fewer than this value.
If unspecified, at most 100 memberships are returned.
The maximum value is 1000. If you use a value more than 1000, it’s automatically changed to 1000.
Negative values return an INVALID_ARGUMENT error.
page_token: StringOptional. A page token, received from a previous call to list memberships. Provide this parameter to retrieve the subsequent page.
When paginating, all other parameters provided should match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results.
filter: StringOptional. A query filter.
You can filter memberships by a member’s role
(role)
and type
(member.type).
To filter by role, set role to ROLE_MEMBER or ROLE_MANAGER.
To filter by type, set member.type to HUMAN or BOT. Developer
Preview: You can also filter for member.type using the != operator.
To filter by both role and type, use the AND operator. To filter by
either role or type, use the OR operator.
Either member.type = "HUMAN" or member.type != "BOT" is required
when use_admin_access is set to true. Other member type filters will be
rejected.
For example, the following queries are valid:
role = "ROLE_MANAGER" OR role = "ROLE_MEMBER"
member.type = "HUMAN" AND role = "ROLE_MANAGER"
member.type != "BOT"The following queries are invalid:
member.type = "HUMAN" AND member.type = "BOT"
role = "ROLE_MANAGER" AND role = "ROLE_MEMBER"Invalid queries are rejected by the server with an INVALID_ARGUMENT
error.
show_groups: boolOptional. When true, also returns memberships associated with a
[Google Group][google.chat.v1.Membership.group_member], in
addition to other types of memberships. If a
[filter][google.chat.v1.ListMembershipsRequest.filter] is set,
[Google Group][google.chat.v1.Membership.group_member]
memberships that don’t match the filter criteria aren’t returned.
show_invited: boolOptional. When true, also returns memberships associated with
[invited][google.chat.v1.Membership.MembershipState.INVITED] members, in
addition to other types of memberships. If a
filter is set,
[invited][google.chat.v1.Membership.MembershipState.INVITED] memberships
that don’t match the filter criteria aren’t returned.
Currently requires user authentication.
Trait Implementations§
source§impl Clone for ListMembershipsRequest
impl Clone for ListMembershipsRequest
source§fn clone(&self) -> ListMembershipsRequest
fn clone(&self) -> ListMembershipsRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ListMembershipsRequest
impl Debug for ListMembershipsRequest
source§impl Default for ListMembershipsRequest
impl Default for ListMembershipsRequest
source§impl Message for ListMembershipsRequest
impl Message for ListMembershipsRequest
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 ListMembershipsRequest
impl PartialEq for ListMembershipsRequest
source§fn eq(&self, other: &ListMembershipsRequest) -> bool
fn eq(&self, other: &ListMembershipsRequest) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ListMembershipsRequest
Auto Trait Implementations§
impl Freeze for ListMembershipsRequest
impl RefUnwindSafe for ListMembershipsRequest
impl Send for ListMembershipsRequest
impl Sync for ListMembershipsRequest
impl Unpin for ListMembershipsRequest
impl UnwindSafe for ListMembershipsRequest
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