# Cloud Private Catalog v1beta1 API - Class PrivateCatalogClientImpl (2.0.0-beta06)

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

- [2.0.0-beta06 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.PrivateCatalogClientImpl)
- [2.0.0-beta05](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/2.0.0-beta05/Google.Cloud.PrivateCatalog.V1Beta1.PrivateCatalogClientImpl)
- [1.0.0-beta02](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/1.0.0-beta02/Google.Cloud.PrivateCatalog.V1Beta1.PrivateCatalogClientImpl)

    public sealed class PrivateCatalogClientImpl : PrivateCatalogClient

Reference documentation and code samples for the Cloud Private Catalog v1beta1 API class PrivateCatalogClientImpl.

PrivateCatalog client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [PrivateCatalogClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.PrivateCatalogClient) \> PrivateCatalogClientImpl

## Inherited Members

[PrivateCatalogClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.PrivateCatalogClient#Google_Cloud_PrivateCatalog_V1Beta1_PrivateCatalogClient_DefaultEndpoint) [PrivateCatalogClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.PrivateCatalogClient#Google_Cloud_PrivateCatalog_V1Beta1_PrivateCatalogClient_DefaultScopes) [PrivateCatalogClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.PrivateCatalogClient#Google_Cloud_PrivateCatalog_V1Beta1_PrivateCatalogClient_ServiceMetadata) [PrivateCatalogClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.PrivateCatalogClient#Google_Cloud_PrivateCatalog_V1Beta1_PrivateCatalogClient_CreateAsync_System_Threading_CancellationToken_) [PrivateCatalogClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.PrivateCatalogClient#Google_Cloud_PrivateCatalog_V1Beta1_PrivateCatalogClient_Create) [PrivateCatalogClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.PrivateCatalogClient#Google_Cloud_PrivateCatalog_V1Beta1_PrivateCatalogClient_ShutdownDefaultChannelsAsync) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

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

## Assembly

Google.Cloud.PrivateCatalog.V1Beta1.dll

## Remarks

`PrivateCatalog` allows catalog consumers to retrieve `Catalog`, `Product`
and `Version` resources under a target resource context.

`Catalog` is computed based on the \[Association\]\[\]s linked to the target
resource and its ancestors. Each association's
\[google.cloud.privatecatalogproducer.v1beta.Catalog\]\[\] is transformed into a
`Catalog`. If multiple associations have the same parent
\[google.cloud.privatecatalogproducer.v1beta.Catalog\]\[\], they are
de-duplicated into one `Catalog`. Users must have
`cloudprivatecatalog.catalogTargets.get` IAM permission on the resource
context in order to access catalogs. `Catalog` contains the resource name and
a subset of data of the original
\[google.cloud.privatecatalogproducer.v1beta.Catalog\]\[\].

`Product` is child resource of the catalog. A `Product` contains the resource
name and a subset of the data of the original
\[google.cloud.privatecatalogproducer.v1beta.Product\]\[\].

`Version` is child resource of the product. A `Version` contains the resource
name and a subset of the data of the original
\[google.cloud.privatecatalogproducer.v1beta.Version\]\[\].

## Constructors

### PrivateCatalogClientImpl(PrivateCatalogClient, PrivateCatalogSettings, ILogger)

    public PrivateCatalogClientImpl(PrivateCatalog.PrivateCatalogClient grpcClient, PrivateCatalogSettings settings, ILogger logger)

Constructs a client wrapper for the PrivateCatalog service, with the specified gRPC client and settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.PrivateCataloghttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.PrivateCatalog.PrivateCatalogClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.PrivateCatalogSettings` The base [PrivateCatalogSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.PrivateCatalogSettings) used within this client. |
| `logger` | `https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger) to use within this client. |

## Properties

### GrpcClient

    public override PrivateCatalog.PrivateCatalogClient GrpcClient { get; }

The underlying gRPC PrivateCatalog client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.PrivateCataloghttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.PrivateCatalog.PrivateCatalogClient` |   |

**Overrides** [PrivateCatalogClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.PrivateCatalogClient#Google_Cloud_PrivateCatalog_V1Beta1_PrivateCatalogClient_GrpcClient)

## Methods

### SearchCatalogs(SearchCatalogsRequest, CallSettings)

    public override PagedEnumerable<SearchCatalogsResponse, Catalog> SearchCatalogs(SearchCatalogsRequest request, CallSettings callSettings = null)

Search \[Catalog\]\[google.cloud.privatecatalog.v1beta1.Catalog\] resources that consumers have access to, within the
scope of the consumer cloud resource hierarchy context.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.SearchCatalogsRequest` 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.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.SearchCatalogsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.Catalog` | A pageable sequence of [Catalog](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.Catalog) resources. |

**Overrides** [PrivateCatalogClient.SearchCatalogs(SearchCatalogsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.PrivateCatalogClient#Google_Cloud_PrivateCatalog_V1Beta1_PrivateCatalogClient_SearchCatalogs_Google_Cloud_PrivateCatalog_V1Beta1_SearchCatalogsRequest_Google_Api_Gax_Grpc_CallSettings_)

### SearchCatalogsAsync(SearchCatalogsRequest, CallSettings)

    public override PagedAsyncEnumerable<SearchCatalogsResponse, Catalog> SearchCatalogsAsync(SearchCatalogsRequest request, CallSettings callSettings = null)

Search \[Catalog\]\[google.cloud.privatecatalog.v1beta1.Catalog\] resources that consumers have access to, within the
scope of the consumer cloud resource hierarchy context.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.SearchCatalogsRequest` 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.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.SearchCatalogsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.Catalog` | A pageable asynchronous sequence of [Catalog](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.Catalog) resources. |

**Overrides** [PrivateCatalogClient.SearchCatalogsAsync(SearchCatalogsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.PrivateCatalogClient#Google_Cloud_PrivateCatalog_V1Beta1_PrivateCatalogClient_SearchCatalogsAsync_Google_Cloud_PrivateCatalog_V1Beta1_SearchCatalogsRequest_Google_Api_Gax_Grpc_CallSettings_)

### SearchProducts(SearchProductsRequest, CallSettings)

    public override PagedEnumerable<SearchProductsResponse, Product> SearchProducts(SearchProductsRequest request, CallSettings callSettings = null)

Search \[Product\]\[google.cloud.privatecatalog.v1beta1.Product\] resources that consumers have access to, within the
scope of the consumer cloud resource hierarchy context.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.SearchProductsRequest` 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.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.SearchProductsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.Product` | A pageable sequence of [Product](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.Product) resources. |

**Overrides** [PrivateCatalogClient.SearchProducts(SearchProductsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.PrivateCatalogClient#Google_Cloud_PrivateCatalog_V1Beta1_PrivateCatalogClient_SearchProducts_Google_Cloud_PrivateCatalog_V1Beta1_SearchProductsRequest_Google_Api_Gax_Grpc_CallSettings_)

### SearchProductsAsync(SearchProductsRequest, CallSettings)

    public override PagedAsyncEnumerable<SearchProductsResponse, Product> SearchProductsAsync(SearchProductsRequest request, CallSettings callSettings = null)

Search \[Product\]\[google.cloud.privatecatalog.v1beta1.Product\] resources that consumers have access to, within the
scope of the consumer cloud resource hierarchy context.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.SearchProductsRequest` 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.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.SearchProductsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.Product` | A pageable asynchronous sequence of [Product](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.Product) resources. |

**Overrides** [PrivateCatalogClient.SearchProductsAsync(SearchProductsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.PrivateCatalogClient#Google_Cloud_PrivateCatalog_V1Beta1_PrivateCatalogClient_SearchProductsAsync_Google_Cloud_PrivateCatalog_V1Beta1_SearchProductsRequest_Google_Api_Gax_Grpc_CallSettings_)

### SearchVersions(SearchVersionsRequest, CallSettings)

    public override PagedEnumerable<SearchVersionsResponse, Version> SearchVersions(SearchVersionsRequest request, CallSettings callSettings = null)

Search \[Version\]\[google.cloud.privatecatalog.v1beta1.Version\] resources that consumers have access to, within the
scope of the consumer cloud resource hierarchy context.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.SearchVersionsRequest` 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.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.SearchVersionsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.Version` | A pageable sequence of [Version](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.Version) resources. |

**Overrides** [PrivateCatalogClient.SearchVersions(SearchVersionsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.PrivateCatalogClient#Google_Cloud_PrivateCatalog_V1Beta1_PrivateCatalogClient_SearchVersions_Google_Cloud_PrivateCatalog_V1Beta1_SearchVersionsRequest_Google_Api_Gax_Grpc_CallSettings_)

### SearchVersionsAsync(SearchVersionsRequest, CallSettings)

    public override PagedAsyncEnumerable<SearchVersionsResponse, Version> SearchVersionsAsync(SearchVersionsRequest request, CallSettings callSettings = null)

Search \[Version\]\[google.cloud.privatecatalog.v1beta1.Version\] resources that consumers have access to, within the
scope of the consumer cloud resource hierarchy context.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.SearchVersionsRequest` 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.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.SearchVersionsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.Version` | A pageable asynchronous sequence of [Version](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.Version) resources. |

**Overrides** [PrivateCatalogClient.SearchVersionsAsync(SearchVersionsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.PrivateCatalogClient#Google_Cloud_PrivateCatalog_V1Beta1_PrivateCatalogClient_SearchVersionsAsync_Google_Cloud_PrivateCatalog_V1Beta1_SearchVersionsRequest_Google_Api_Gax_Grpc_CallSettings_)