Struct google_api_proto::google::apps::events::subscriptions::v1::ListSubscriptionsRequest
source · pub struct ListSubscriptionsRequest {
pub page_size: i32,
pub page_token: String,
pub filter: String,
}
Expand description
The request message for [SubscriptionsService.ListSubscriptions][google.apps.events.subscriptions.v1.SubscriptionsService.ListSubscriptions].
Fields§
§page_size: i32
Optional. The maximum number of subscriptions to return. The service might return fewer than this value.
If unspecified or set to 0
, up to 50 subscriptions are returned.
The maximum value is 100. If you specify a value more than 100, the system only returns 100 subscriptions.
page_token: String
Optional. A page token, received from a previous list subscriptions call. Provide this parameter 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
Required. A query filter.
You can filter subscriptions by event type (event_types
)
and target resource (target_resource
).
You must specify at least one event type in your query. To filter for
multiple event types, use the OR
operator.
To filter by both event type and target resource, use the AND
operator
and specify the full resource name, such as
//chat.googleapis.com/spaces/{space}
.
For example, the following queries are valid:
event_types:"google.workspace.chat.membership.v1.updated" OR
event_types:"google.workspace.chat.message.v1.created"
event_types:"google.workspace.chat.message.v1.created" AND
target_resource="//chat.googleapis.com/spaces/{space}"
( event_types:"google.workspace.chat.membership.v1.updated" OR
event_types:"google.workspace.chat.message.v1.created" ) AND
target_resource="//chat.googleapis.com/spaces/{space}"
The server rejects invalid queries with an INVALID_ARGUMENT
error.
Trait Implementations§
source§impl Clone for ListSubscriptionsRequest
impl Clone for ListSubscriptionsRequest
source§fn clone(&self) -> ListSubscriptionsRequest
fn clone(&self) -> ListSubscriptionsRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ListSubscriptionsRequest
impl Debug for ListSubscriptionsRequest
source§impl Default for ListSubscriptionsRequest
impl Default for ListSubscriptionsRequest
source§impl Message for ListSubscriptionsRequest
impl Message for ListSubscriptionsRequest
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 ListSubscriptionsRequest
impl PartialEq for ListSubscriptionsRequest
source§fn eq(&self, other: &ListSubscriptionsRequest) -> bool
fn eq(&self, other: &ListSubscriptionsRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ListSubscriptionsRequest
Auto Trait Implementations§
impl Freeze for ListSubscriptionsRequest
impl RefUnwindSafe for ListSubscriptionsRequest
impl Send for ListSubscriptionsRequest
impl Sync for ListSubscriptionsRequest
impl Unpin for ListSubscriptionsRequest
impl UnwindSafe for ListSubscriptionsRequest
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