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

An [attestor](https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.Attestor) that attests to container image
artifacts. An existing attestor cannot be modified except where
indicated.

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

## Namespace

Google \\ Cloud \\ BinaryAuthorization \\ V1

## Methods

### __construct

Constructor.

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

### getName

Required. The resource name, in the format:
`projects/*/attestors/*`. This field may not be updated.

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

### setName

Required. The resource name, in the format:
`projects/*/attestors/*`. This field may not be updated.

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

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

### getDescription

Optional. A descriptive comment. This field may be updated.

The field may be displayed in chooser dialogs.

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

### setDescription

Optional. A descriptive comment. This field may be updated.

The field may be displayed in chooser dialogs.

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

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

### getUserOwnedGrafeasNote

This specifies how an attestation will be read, and how it will be used
during policy enforcement.

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

### hasUserOwnedGrafeasNote

### setUserOwnedGrafeasNote

This specifies how an attestation will be read, and how it will be used
during policy enforcement.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.UserOwnedGrafeasNote` |

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

### getUpdateTime

Output only. Time when the attestor was last updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. Time when the attestor was last updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getAttestorType

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