# Interface IPageManager&lt;TRequest, TResponse, TResource&gt; (4.10.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [4.10.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Rest.IPageManager-3)
- [4.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/4.8.0/Google.Api.Gax.Rest.IPageManager-3)
- [4.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/4.4.0/Google.Api.Gax.Rest.IPageManager-3)
- [4.3.1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/4.3.1/Google.Api.Gax.Rest.IPageManager-3)
- [4.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/4.2.0/Google.Api.Gax.Rest.IPageManager-3)
- [4.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/4.0.0/Google.Api.Gax.Rest.IPageManager-3)
- [3.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/3.2.0/Google.Api.Gax.Rest.IPageManager-3)

    public interface IPageManager<TRequest, TResponse, TResource>

Interface describing the relationship between requests, responses and resources for
page streaming.

## Namespace

[Google.Api.Gax.Rest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Rest)

## Assembly

Google.Api.Gax.Rest.dll

| ## Type Parameters ||
|---|---|
| **Name** | **Description** |
| `TRequest` | The request type. |
| `TResponse` | The response type. |
| `TResource` | The resource type. |

## Methods

### GetNextPageToken(TResponse)

    string GetNextPageToken(TResponse response)

Extracts the next page token from a response.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `response` | `TResponse` The response to extract the next page token from. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` | The next page token, or `null` if this is the final page of results. |

### GetResources(TResponse)

    IEnumerable<TResource> GetResources(TResponse response)

Extracts resources from a response.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `response` | `TResponse` The response containing the resources. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1` | The resources in the response, or `null` if it contains no resources. |

### SetPageSize(TRequest, int)

    void SetPageSize(TRequest request, int pageSize)

Applies the given page size to the given request.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `TRequest` The request to modify. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The page size for the next remote call. |

### SetPageToken(TRequest, string)

    void SetPageToken(TRequest request, string pageToken)

Applies the given page token to the given request.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `TRequest` The request to modify. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The page token for the next remote call. |