# Privileged Access Manager v1 API - Class SearchEntitlementsRequest (1.2.0)

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

- [1.2.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/latest/Google.Cloud.PrivilegedAccessManager.V1.SearchEntitlementsRequest)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/1.1.0/Google.Cloud.PrivilegedAccessManager.V1.SearchEntitlementsRequest)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/1.0.0/Google.Cloud.PrivilegedAccessManager.V1.SearchEntitlementsRequest)

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

Reference documentation and code samples for the Privileged Access Manager v1 API class SearchEntitlementsRequest.

Request message for `SearchEntitlements` method.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SearchEntitlementsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/latest/Google.Cloud.PrivilegedAccessManager.V1.SearchEntitlementsRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SearchEntitlementsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/latest/Google.Cloud.PrivilegedAccessManager.V1.SearchEntitlementsRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SearchEntitlementsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/latest/Google.Cloud.PrivilegedAccessManager.V1.SearchEntitlementsRequest), [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.PrivilegedAccessManager.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/latest/Google.Cloud.PrivilegedAccessManager.V1)

## Assembly

Google.Cloud.PrivilegedAccessManager.V1.dll

## Constructors

### SearchEntitlementsRequest()

    public SearchEntitlementsRequest()

### SearchEntitlementsRequest(SearchEntitlementsRequest)

    public SearchEntitlementsRequest(SearchEntitlementsRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/latest/Google.Cloud.PrivilegedAccessManager.V1.SearchEntitlementsRequest` |

## Properties

### CallerAccessType

    public SearchEntitlementsRequest.Types.CallerAccessType CallerAccessType { get; set; }

Required. Only entitlements where the calling user has this access are
returned.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/latest/Google.Cloud.PrivilegedAccessManager.V1.SearchEntitlementsRequesthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/latest/Google.Cloud.PrivilegedAccessManager.V1.SearchEntitlementsRequest.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/latest/Google.Cloud.PrivilegedAccessManager.V1.SearchEntitlementsRequest.Types.CallerAccessType` |   |

### Filter

    public string Filter { get; set; }

Optional. Only entitlements matching this filter are returned in the
response.

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

### PageSize

    public int PageSize { get; set; }

Optional. Requested page size. The server may return fewer items than
requested. If unspecified, the server picks an appropriate default.

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

### PageToken

    public string PageToken { get; set; }

Optional. A token identifying a page of results the server should return.

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

### Parent

    public string Parent { get; set; }

Required. The parent which owns the entitlement resources.

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

### ParentAsFolderLocationName

    public FolderLocationName ParentAsFolderLocationName { get; set; }

[FolderLocationName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/latest/Google.Cloud.PrivilegedAccessManager.V1.FolderLocationName)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/latest/Google.Cloud.PrivilegedAccessManager.V1.SearchEntitlementsRequest#Google_Cloud_PrivilegedAccessManager_V1_SearchEntitlementsRequest_Parent) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/latest/Google.Cloud.PrivilegedAccessManager.V1.FolderLocationName` |   |

### ParentAsLocationName

    public LocationName ParentAsLocationName { get; set; }

[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/latest/Google.Cloud.PrivilegedAccessManager.V1.SearchEntitlementsRequest#Google_Cloud_PrivilegedAccessManager_V1_SearchEntitlementsRequest_Parent) resource name property.

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

### ParentAsOrganizationLocationName

    public OrganizationLocationName ParentAsOrganizationLocationName { get; set; }

[OrganizationLocationName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/latest/Google.Cloud.PrivilegedAccessManager.V1.OrganizationLocationName)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/latest/Google.Cloud.PrivilegedAccessManager.V1.SearchEntitlementsRequest#Google_Cloud_PrivilegedAccessManager_V1_SearchEntitlementsRequest_Parent) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/latest/Google.Cloud.PrivilegedAccessManager.V1.OrganizationLocationName` |   |

### ParentAsResourceName

    public IResourceName ParentAsResourceName { get; set; }

[IResourceName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/latest/Google.Cloud.PrivilegedAccessManager.V1.SearchEntitlementsRequest#Google_Cloud_PrivilegedAccessManager_V1_SearchEntitlementsRequest_Parent) resource name property.

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