Struct google_api_proto::google::cloud::tasks::v2::ListTasksRequest
source · pub struct ListTasksRequest {
pub parent: String,
pub response_view: i32,
pub page_size: i32,
pub page_token: String,
}
Expand description
Request message for listing tasks using [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks].
Fields§
§parent: String
Required. The queue name. For example:
projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID
response_view: i32
The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be returned.
By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all information is retrieved by default because some data, such as payloads, might be desirable to return only when needed because of its large size or because of the sensitivity of data that it contains.
Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
cloudtasks.tasks.fullView
Google IAM
permission on the [Task][google.cloud.tasks.v2.Task] resource.
page_size: i32
Maximum page size.
Fewer tasks than requested might be returned, even if more tasks exist; use [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] in the response to determine if more tasks exist.
The maximum page size is 1000. If unspecified, the page size will be the maximum.
page_token: String
A token identifying the page of results to return.
To request the first page results, page_token must be empty. To request the next page of results, page_token must be the value of [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] returned from the previous call to [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks] method.
The page token is valid for only 2 hours.
Implementations§
source§impl ListTasksRequest
impl ListTasksRequest
sourcepub fn response_view(&self) -> View
pub fn response_view(&self) -> View
Returns the enum value of response_view
, or the default if the field is set to an invalid enum value.
sourcepub fn set_response_view(&mut self, value: View)
pub fn set_response_view(&mut self, value: View)
Sets response_view
to the provided enum value.
Trait Implementations§
source§impl Clone for ListTasksRequest
impl Clone for ListTasksRequest
source§fn clone(&self) -> ListTasksRequest
fn clone(&self) -> ListTasksRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ListTasksRequest
impl Debug for ListTasksRequest
source§impl Default for ListTasksRequest
impl Default for ListTasksRequest
source§impl Message for ListTasksRequest
impl Message for ListTasksRequest
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 ListTasksRequest
impl PartialEq for ListTasksRequest
source§fn eq(&self, other: &ListTasksRequest) -> bool
fn eq(&self, other: &ListTasksRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ListTasksRequest
Auto Trait Implementations§
impl Freeze for ListTasksRequest
impl RefUnwindSafe for ListTasksRequest
impl Send for ListTasksRequest
impl Sync for ListTasksRequest
impl Unpin for ListTasksRequest
impl UnwindSafe for ListTasksRequest
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