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,
pub use_admin_access: bool,
}
Expand description
Request message for listing memberships.
Fields§
§parent: String
Required. The resource name of the space for which to fetch a membership list.
Format: spaces/{space}
page_size: i32
Optional. 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: String
Optional. 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: String
Optional. 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
. 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: bool
Optional. 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: bool
Optional. 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.
use_admin_access: bool
Optional. When true
, the method runs using the user’s Google Workspace
administrator privileges.
The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege.
Requires either the chat.admin.memberships.readonly
or
chat.admin.memberships
OAuth 2.0
scope.
Listing app memberships in a space isn’t supported when using admin access.
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
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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