# Cloud Tasks V2beta2 API - Class Google::Cloud::Tasks::V2beta2::ListTasksRequest (v0.18.0)

0.18.0 (latest) 0.17.0 0.16.1 0.15.0 0.14.1 0.13.0 0.12.1 0.11.3 0.10.0 0.9.2 0.8.0 0.7.0 0.6.0 0.5.5 Reference documentation and code samples for the Cloud Tasks V2beta2 API class Google::Cloud::Tasks::V2beta2::ListTasksRequest.

Request message for listing tasks using
[ListTasks](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-CloudTasks-Client#Google__Cloud__Tasks__V2beta2__CloudTasks__Client_list_tasks_instance_ "Google::Cloud::Tasks::V2beta2::CloudTasks::Client#list_tasks (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #page_size

    def page_size() -> ::Integer

**Returns**

- (::Integer) --- Maximum page size.

  Fewer tasks than requested might be returned, even if more tasks exist; use
  [next_page_token](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-ListTasksResponse#Google__Cloud__Tasks__V2beta2__ListTasksResponse_next_page_token_instance_ "Google::Cloud::Tasks::V2beta2::ListTasksResponse#next_page_token (method)")
  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_size=

    def page_size=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Maximum page size.


  Fewer tasks than requested might be returned, even if more tasks exist; use
  [next_page_token](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-ListTasksResponse#Google__Cloud__Tasks__V2beta2__ListTasksResponse_next_page_token_instance_ "Google::Cloud::Tasks::V2beta2::ListTasksResponse#next_page_token (method)")
  in the response to determine if more tasks exist.

  The maximum page size is 1000. If unspecified, the page size will be the
  maximum.
**Returns**

- (::Integer) --- Maximum page size.

  Fewer tasks than requested might be returned, even if more tasks exist; use
  [next_page_token](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-ListTasksResponse#Google__Cloud__Tasks__V2beta2__ListTasksResponse_next_page_token_instance_ "Google::Cloud::Tasks::V2beta2::ListTasksResponse#next_page_token (method)")
  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

    def page_token() -> ::String

**Returns**

- (::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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-ListTasksResponse#Google__Cloud__Tasks__V2beta2__ListTasksResponse_next_page_token_instance_ "Google::Cloud::Tasks::V2beta2::ListTasksResponse#next_page_token (method)")
  returned from the previous call to
  [ListTasks](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-CloudTasks-Client#Google__Cloud__Tasks__V2beta2__CloudTasks__Client_list_tasks_instance_ "Google::Cloud::Tasks::V2beta2::CloudTasks::Client#list_tasks (method)") method.

  The page token is valid for only 2 hours.

### #page_token=

    def page_token=(value) -> ::String

**Parameter**

- **value** (::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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-ListTasksResponse#Google__Cloud__Tasks__V2beta2__ListTasksResponse_next_page_token_instance_ "Google::Cloud::Tasks::V2beta2::ListTasksResponse#next_page_token (method)")
  returned from the previous call to
  [ListTasks](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-CloudTasks-Client#Google__Cloud__Tasks__V2beta2__CloudTasks__Client_list_tasks_instance_ "Google::Cloud::Tasks::V2beta2::CloudTasks::Client#list_tasks (method)") method.

  The page token is valid for only 2 hours.
**Returns**

- (::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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-ListTasksResponse#Google__Cloud__Tasks__V2beta2__ListTasksResponse_next_page_token_instance_ "Google::Cloud::Tasks::V2beta2::ListTasksResponse#next_page_token (method)")
  returned from the previous call to
  [ListTasks](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-CloudTasks-Client#Google__Cloud__Tasks__V2beta2__CloudTasks__Client_list_tasks_instance_ "Google::Cloud::Tasks::V2beta2::CloudTasks::Client#list_tasks (method)") method.

  The page token is valid for only 2 hours.

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. The queue name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The queue name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
**Returns**

- (::String) --- Required. The queue name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`

### #response_view

    def response_view() -> ::Google::Cloud::Tasks::V2beta2::Task::View

**Returns**

- ([::Google::Cloud::Tasks::V2beta2::Task::View](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task-View)) --- The response_view specifies which subset of the [Task](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task "Google::Cloud::Tasks::V2beta2::Task (class)") will be returned.


  By default response_view is
  [BASIC](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task-View#Google__Cloud__Tasks__V2beta2__Task__View__BASIC "Google::Cloud::Tasks::V2beta2::Task::View::BASIC (constant)"); 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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task-View#Google__Cloud__Tasks__V2beta2__Task__View__FULL "Google::Cloud::Tasks::V2beta2::Task::View::FULL (constant)")
  requires `cloudtasks.tasks.fullView` [Google
  IAM](https://cloud.google.com/iam/) permission on the
  [Task](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task "Google::Cloud::Tasks::V2beta2::Task (class)") resource.

### #response_view=

    def response_view=(value) -> ::Google::Cloud::Tasks::V2beta2::Task::View

**Parameter**

- **value** ([::Google::Cloud::Tasks::V2beta2::Task::View](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task-View)) --- The response_view specifies which subset of the [Task](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task "Google::Cloud::Tasks::V2beta2::Task (class)") will be returned.


  By default response_view is
  [BASIC](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task-View#Google__Cloud__Tasks__V2beta2__Task__View__BASIC "Google::Cloud::Tasks::V2beta2::Task::View::BASIC (constant)"); 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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task-View#Google__Cloud__Tasks__V2beta2__Task__View__FULL "Google::Cloud::Tasks::V2beta2::Task::View::FULL (constant)")
  requires `cloudtasks.tasks.fullView` [Google
  IAM](https://cloud.google.com/iam/) permission on the
  [Task](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task "Google::Cloud::Tasks::V2beta2::Task (class)") resource.
**Returns**

- ([::Google::Cloud::Tasks::V2beta2::Task::View](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task-View)) --- The response_view specifies which subset of the [Task](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task "Google::Cloud::Tasks::V2beta2::Task (class)") will be returned.


  By default response_view is
  [BASIC](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task-View#Google__Cloud__Tasks__V2beta2__Task__View__BASIC "Google::Cloud::Tasks::V2beta2::Task::View::BASIC (constant)"); 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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task-View#Google__Cloud__Tasks__V2beta2__Task__View__FULL "Google::Cloud::Tasks::V2beta2::Task::View::FULL (constant)")
  requires `cloudtasks.tasks.fullView` [Google
  IAM](https://cloud.google.com/iam/) permission on the
  [Task](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task "Google::Cloud::Tasks::V2beta2::Task (class)") resource.