# Cloud Tasks V2beta2 API - Class Google::Cloud::Tasks::V2beta2::ListTasksResponse (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::ListTasksResponse.

Response 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

### #next_page_token

    def next_page_token() -> ::String

**Returns**

- (::String) --- A token to retrieve next page of results.

  To return the next page of results, call
  [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)") with this
  value as the
  [page_token](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-ListTasksRequest#Google__Cloud__Tasks__V2beta2__ListTasksRequest_page_token_instance_ "Google::Cloud::Tasks::V2beta2::ListTasksRequest#page_token (method)").

  If the next_page_token is empty, there are no more results.

### #next_page_token=

    def next_page_token=(value) -> ::String

**Parameter**

- **value** (::String) --- A token to retrieve next page of results.


  To return the next page of results, call
  [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)") with this
  value as the
  [page_token](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-ListTasksRequest#Google__Cloud__Tasks__V2beta2__ListTasksRequest_page_token_instance_ "Google::Cloud::Tasks::V2beta2::ListTasksRequest#page_token (method)").

  If the next_page_token is empty, there are no more results.
**Returns**

- (::String) --- A token to retrieve next page of results.

  To return the next page of results, call
  [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)") with this
  value as the
  [page_token](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-ListTasksRequest#Google__Cloud__Tasks__V2beta2__ListTasksRequest_page_token_instance_ "Google::Cloud::Tasks::V2beta2::ListTasksRequest#page_token (method)").

  If the next_page_token is empty, there are no more results.

### #tasks

    def tasks() -> ::Array<::Google::Cloud::Tasks::V2beta2::Task>

**Returns**

- (::Array\<[::Google::Cloud::Tasks::V2beta2::Task](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task)\>) --- The list of tasks.

### #tasks=

    def tasks=(value) -> ::Array<::Google::Cloud::Tasks::V2beta2::Task>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Tasks::V2beta2::Task](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task)\>) --- The list of tasks.
**Returns**

- (::Array\<[::Google::Cloud::Tasks::V2beta2::Task](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task)\>) --- The list of tasks.