# Cloud Private Catalog v1beta1 API - Class SearchVersionsRequest (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.SearchVersionsRequest)
- [2.0.0-beta05](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/2.0.0-beta05/Google.Cloud.PrivateCatalog.V1Beta1.SearchVersionsRequest)
- [1.0.0-beta02](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/1.0.0-beta02/Google.Cloud.PrivateCatalog.V1Beta1.SearchVersionsRequest)

    public sealed class SearchVersionsRequest : IMessage<SearchVersionsRequest>, IEquatable<SearchVersionsRequest>, IDeepCloneable<SearchVersionsRequest>, IBufferMessage, IMessage, IPageRequest

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

Request message for \[PrivateCatalog.SearchVersions\]\[google.cloud.privatecatalog.v1beta1.PrivateCatalog.SearchVersions\].

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SearchVersionsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.SearchVersionsRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SearchVersionsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.SearchVersionsRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SearchVersionsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.SearchVersionsRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html), [IPageRequest](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.IPageRequest.html)

## 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.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

## Constructors

### SearchVersionsRequest()

    public SearchVersionsRequest()

### SearchVersionsRequest(SearchVersionsRequest)

    public SearchVersionsRequest(SearchVersionsRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.SearchVersionsRequest` |

## Properties

### PageSize

    public int PageSize { get; set; }

The maximum number of entries that are requested.

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

### PageToken

    public string PageToken { get; set; }

A pagination token returned from a previous call to SearchVersions
that indicates where this listing should continue from.

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

### Query

    public string Query { get; set; }

Required. The query to filter the versions.

The supported queries are:

- List versions under a product: `parent=catalogs/{catalog}/products/{product}`
- Get a version by name: `name=catalogs/{catalog}/products/{product}/versions/{version}`

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

### Resource

    public string Resource { get; set; }

Required. The name of the resource context. See \[SearchCatalogsRequest.resource\]\[google.cloud.privatecatalog.v1beta1.SearchCatalogsRequest.resource\]
for details.

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