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

Request 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.ValidateAttestationOccurrenceRequest`

## Namespace

Google \\ Cloud \\ BinaryAuthorization \\ V1

## Methods

### __construct

Constructor.

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

### getAttestor

Required. The resource name of the [Attestor](https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.Attestor) of the
[occurrence](https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.Occurrence.html), in the format
`projects/*/attestors/*`.

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

### setAttestor

Required. The resource name of the [Attestor](https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.Attestor) of the
[occurrence](https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.Occurrence.html), in the format
`projects/*/attestors/*`.

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

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

### getAttestation

Required. An [AttestationOccurrence](https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.AttestationOccurrence.html) to
be checked that it can be verified by the Attestor. It does not have to be
an existing entity in Container Analysis. It must otherwise be a valid
AttestationOccurrence.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.AttestationOccurrence.html|null` |   |

### hasAttestation

### clearAttestation

### setAttestation

Required. An [AttestationOccurrence](https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.AttestationOccurrence.html) to
be checked that it can be verified by the Attestor. It does not have to be
an existing entity in Container Analysis. It must otherwise be a valid
AttestationOccurrence.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.AttestationOccurrence.html` |

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

### getOccurrenceNote

Required. The resource name of the [Note](https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.Note.html) to which the
containing [Occurrence](https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.Occurrence.html) is associated.

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

### setOccurrenceNote

Required. The resource name of the [Note](https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.Note.html) to which the
containing [Occurrence](https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.Occurrence.html) is associated.

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

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

### getOccurrenceResourceUri

Required. The URI of the artifact (e.g. container image) that is the
subject of the containing [Occurrence](https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.Occurrence.html).

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

### setOccurrenceResourceUri

Required. The URI of the artifact (e.g. container image) that is the
subject of the containing [Occurrence](https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.Occurrence.html).

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

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