# Google Cloud Binary Authorization V1 Client - Class GetPolicyRequest (1.1.2)

1.1.2 (latest) 1.1.1 1.0.5 0.8.7 0.7.0 0.6.1 0.5.13 Reference documentation and code samples for the Google Cloud Binary Authorization V1 Client class GetPolicyRequest.

Request message for BinauthzManagementService.GetPolicy.

Generated from protobuf message `google.cloud.binaryauthorization.v1.GetPolicyRequest`

## Namespace

Google \\ Cloud \\ BinaryAuthorization \\ V1

## Methods

### __construct

Constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### getName

Required. The resource name of the [policy](https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.Policy) to retrieve,
in the format `projects/*/policy`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Required. The resource name of the [policy](https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.Policy) to retrieve,
in the format `projects/*/policy`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The resource name of the [policy](https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.Policy) to retrieve, in the format `projects/*/policy`. Please see BinauthzManagementServiceV1Client::policyName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.GetPolicyRequest` |   |