# Google Cloud Billing v1 API - Class CloudCatalogClient (3.10.0)

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

- [3.10.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudCatalogClient)
- [3.9.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/3.9.0/Google.Cloud.Billing.V1.CloudCatalogClient)
- [3.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/3.8.0/Google.Cloud.Billing.V1.CloudCatalogClient)
- [3.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/3.7.0/Google.Cloud.Billing.V1.CloudCatalogClient)
- [3.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/3.6.0/Google.Cloud.Billing.V1.CloudCatalogClient)
- [3.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/3.5.0/Google.Cloud.Billing.V1.CloudCatalogClient)
- [3.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/3.4.0/Google.Cloud.Billing.V1.CloudCatalogClient)
- [3.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/3.3.0/Google.Cloud.Billing.V1.CloudCatalogClient)
- [3.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/3.2.0/Google.Cloud.Billing.V1.CloudCatalogClient)
- [3.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/3.1.0/Google.Cloud.Billing.V1.CloudCatalogClient)
- [3.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/3.0.0/Google.Cloud.Billing.V1.CloudCatalogClient)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/2.3.0/Google.Cloud.Billing.V1.CloudCatalogClient)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/2.2.0/Google.Cloud.Billing.V1.CloudCatalogClient)

    public abstract class CloudCatalogClient

Reference documentation and code samples for the Google Cloud Billing v1 API class CloudCatalogClient.

CloudCatalog client wrapper, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> CloudCatalogClient

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Derived Types

[CloudCatalogClientImpl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudCatalogClientImpl)

## Namespace

[Google.Cloud.Billing.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1)

## Assembly

Google.Cloud.Billing.V1.dll

## Remarks

A catalog of Google Cloud Platform services and SKUs.
Provides pricing information and metadata on Google Cloud Platform services
and SKUs.

## Properties

### DefaultEndpoint

    public static string DefaultEndpoint { get; }

The default endpoint for the CloudCatalog service, which is a host of "cloudbilling.googleapis.com" and a
port of 443.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### DefaultScopes

    public static IReadOnlyList<string> DefaultScopes { get; }

The default CloudCatalog scopes.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1https://learn.microsoft.com/dotnet/api/system.string` |   |

**Remarks** The default CloudCatalog scopes are:

- <https://www.googleapis.com/auth/cloud-billing>
- <https://www.googleapis.com/auth/cloud-billing.readonly>
- <https://www.googleapis.com/auth/cloud-platform>

<br />

### GrpcClient

    public virtual CloudCatalog.CloudCatalogClient GrpcClient { get; }

The underlying gRPC CloudCatalog client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudCataloghttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudCatalog.CloudCatalogClient` |   |

### ServiceMetadata

    public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceMetadata.html` |   |

## Methods

### Create()

    public static CloudCatalogClient Create()

Synchronously creates a [CloudCatalogClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudCatalogClient) using the default credentials, endpoint and
settings. To specify custom credentials or other settings, use [CloudCatalogClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudCatalogClientBuilder).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudCatalogClient` | The created [CloudCatalogClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudCatalogClient). |

### CreateAsync(CancellationToken)

    public static Task<CloudCatalogClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a [CloudCatalogClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudCatalogClient) using the default credentials, endpoint and
settings. To specify custom credentials or other settings, use [CloudCatalogClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudCatalogClientBuilder).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use while creating the client. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudCatalogClient` | The task representing the created [CloudCatalogClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudCatalogClient). |

### ListServices(ListServicesRequest, CallSettings)

    public virtual PagedEnumerable<ListServicesResponse, Service> ListServices(ListServicesRequest request, CallSettings callSettings = null)

Lists all public cloud services.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ListServicesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ListServicesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.Service` | A pageable sequence of [Service](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.Service) resources. |

**Example**

    // Create client
    CloudCatalogClient cloudCatalogClient = CloudCatalogClient.Create();
    // Initialize request argument(s)
    ListServicesRequest request = new ListServicesRequest { };
    // Make the request
    PagedEnumerable<ListServicesResponse, Service> response = cloudCatalogClient.ListServices(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Service item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListServicesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Service item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Service> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Service item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListServices(string, int?, CallSettings)

    public virtual PagedEnumerable<ListServicesResponse, Service> ListServices(string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all public cloud services.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ListServicesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.Service` | A pageable sequence of [Service](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.Service) resources. |

**Example**

    // Create client
    CloudCatalogClient cloudCatalogClient = CloudCatalogClient.Create();
    // Make the request
    PagedEnumerable<ListServicesResponse, Service> response = cloudCatalogClient.ListServices();

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Service item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListServicesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Service item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Service> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Service item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListServicesAsync(ListServicesRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListServicesResponse, Service> ListServicesAsync(ListServicesRequest request, CallSettings callSettings = null)

Lists all public cloud services.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ListServicesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ListServicesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.Service` | A pageable asynchronous sequence of [Service](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.Service) resources. |

**Example**

    // Create client
    CloudCatalogClient cloudCatalogClient = await CloudCatalogClient.CreateAsync();
    // Initialize request argument(s)
    ListServicesRequest request = new ListServicesRequest { };
    // Make the request
    PagedAsyncEnumerable<ListServicesResponse, Service> response = cloudCatalogClient.ListServicesAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Service item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListServicesResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Service item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Service> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Service item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListServicesAsync(string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListServicesResponse, Service> ListServicesAsync(string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all public cloud services.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ListServicesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.Service` | A pageable asynchronous sequence of [Service](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.Service) resources. |

**Example**

    // Create client
    CloudCatalogClient cloudCatalogClient = await CloudCatalogClient.CreateAsync();
    // Make the request
    PagedAsyncEnumerable<ListServicesResponse, Service> response = cloudCatalogClient.ListServicesAsync();

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Service item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListServicesResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Service item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Service> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Service item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListSkus(ListSkusRequest, CallSettings)

    public virtual PagedEnumerable<ListSkusResponse, Sku> ListSkus(ListSkusRequest request, CallSettings callSettings = null)

Lists all publicly available SKUs for a given cloud service.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ListSkusRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ListSkusResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.Sku` | A pageable sequence of [Sku](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.Sku) resources. |

**Example**

    // Create client
    CloudCatalogClient cloudCatalogClient = CloudCatalogClient.Create();
    // Initialize request argument(s)
    ListSkusRequest request = new ListSkusRequest
    {
        ParentAsServiceName = ServiceName.FromService("[SERVICE]"),
        StartTime = new Timestamp(),
        EndTime = new Timestamp(),
        CurrencyCode = "",
    };
    // Make the request
    PagedEnumerable<ListSkusResponse, Sku> response = cloudCatalogClient.ListSkus(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Sku item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListSkusResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Sku item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Sku> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Sku item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListSkus(ServiceName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListSkusResponse, Sku> ListSkus(ServiceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all publicly available SKUs for a given cloud service.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ServiceName` Required. The name of the service. Example: "services/6F81-5844-456A" |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ListSkusResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.Sku` | A pageable sequence of [Sku](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.Sku) resources. |

**Example**

    // Create client
    CloudCatalogClient cloudCatalogClient = CloudCatalogClient.Create();
    // Initialize request argument(s)
    ServiceName parent = ServiceName.FromService("[SERVICE]");
    // Make the request
    PagedEnumerable<ListSkusResponse, Sku> response = cloudCatalogClient.ListSkus(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Sku item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListSkusResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Sku item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Sku> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Sku item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListSkus(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListSkusResponse, Sku> ListSkus(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all publicly available SKUs for a given cloud service.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the service. Example: "services/6F81-5844-456A" |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ListSkusResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.Sku` | A pageable sequence of [Sku](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.Sku) resources. |

**Example**

    // Create client
    CloudCatalogClient cloudCatalogClient = CloudCatalogClient.Create();
    // Initialize request argument(s)
    string parent = "services/[SERVICE]";
    // Make the request
    PagedEnumerable<ListSkusResponse, Sku> response = cloudCatalogClient.ListSkus(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Sku item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListSkusResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Sku item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Sku> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Sku item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListSkusAsync(ListSkusRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListSkusResponse, Sku> ListSkusAsync(ListSkusRequest request, CallSettings callSettings = null)

Lists all publicly available SKUs for a given cloud service.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ListSkusRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ListSkusResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.Sku` | A pageable asynchronous sequence of [Sku](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.Sku) resources. |

**Example**

    // Create client
    CloudCatalogClient cloudCatalogClient = await CloudCatalogClient.CreateAsync();
    // Initialize request argument(s)
    ListSkusRequest request = new ListSkusRequest
    {
        ParentAsServiceName = ServiceName.FromService("[SERVICE]"),
        StartTime = new Timestamp(),
        EndTime = new Timestamp(),
        CurrencyCode = "",
    };
    // Make the request
    PagedAsyncEnumerable<ListSkusResponse, Sku> response = cloudCatalogClient.ListSkusAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Sku item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListSkusResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Sku item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Sku> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Sku item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListSkusAsync(ServiceName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListSkusResponse, Sku> ListSkusAsync(ServiceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all publicly available SKUs for a given cloud service.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ServiceName` Required. The name of the service. Example: "services/6F81-5844-456A" |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ListSkusResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.Sku` | A pageable asynchronous sequence of [Sku](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.Sku) resources. |

**Example**

    // Create client
    CloudCatalogClient cloudCatalogClient = await CloudCatalogClient.CreateAsync();
    // Initialize request argument(s)
    ServiceName parent = ServiceName.FromService("[SERVICE]");
    // Make the request
    PagedAsyncEnumerable<ListSkusResponse, Sku> response = cloudCatalogClient.ListSkusAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Sku item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListSkusResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Sku item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Sku> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Sku item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListSkusAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListSkusResponse, Sku> ListSkusAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all publicly available SKUs for a given cloud service.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the service. Example: "services/6F81-5844-456A" |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ListSkusResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.Sku` | A pageable asynchronous sequence of [Sku](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.Sku) resources. |

**Example**

    // Create client
    CloudCatalogClient cloudCatalogClient = await CloudCatalogClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "services/[SERVICE]";
    // Make the request
    PagedAsyncEnumerable<ListSkusResponse, Sku> response = cloudCatalogClient.ListSkusAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Sku item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListSkusResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Sku item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Sku> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Sku item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ShutdownDefaultChannelsAsync()

    public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudCatalogClient#Google_Cloud_Billing_V1_CloudCatalogClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudCatalogClient#Google_Cloud_Billing_V1_CloudCatalogClient_CreateAsync_System_Threading_CancellationToken_). Channels which weren't automatically created are not
affected.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A task representing the asynchronous shutdown operation. |

**Remarks** After calling this method, further calls to [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudCatalogClient#Google_Cloud_Billing_V1_CloudCatalogClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudCatalogClient#Google_Cloud_Billing_V1_CloudCatalogClient_CreateAsync_System_Threading_CancellationToken_) will create new channels, which could in turn be shut down
by another call to this method.