# Google Cloud Binary Authorization V1 Client - Class ValidateAttestationOccurrenceResponse (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 ValidateAttestationOccurrenceResponse.

Response message for
[ValidationHelperV1.ValidateAttestationOccurrence](https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.Client.ValidationHelperV1Client#_Google_Cloud_BinaryAuthorization_V1_Client_ValidationHelperV1Client__validateAttestationOccurrence__).

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

## Namespace

Google \\ Cloud \\ BinaryAuthorization \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ result` | `int` The result of the Attestation validation. |
| `↳ denial_reason` | `string` The reason for denial if the Attestation couldn't be validated. |

### getResult

The result of the Attestation validation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Result](https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.ValidateAttestationOccurrenceResponse.Result). |

### setResult

The result of the Attestation validation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Result](https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.ValidateAttestationOccurrenceResponse.Result). |

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

### getDenialReason

The reason for denial if the Attestation couldn't be validated.

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

### setDenialReason

The reason for denial if the Attestation couldn't be validated.

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

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