# Grafeas V1 Client - Class SecretOccurrence (1.7.0)

1.7.0 (latest) 1.6.0 1.5.0 1.4.0 1.3.2 1.2.2 1.1.3 1.0.0 0.10.3 0.9.0 0.8.3 0.7.1 0.6.0 0.5.0 0.4.4 Reference documentation and code samples for the Grafeas V1 Client class SecretOccurrence.

The occurrence provides details of a secret.

Generated from protobuf message `grafeas.v1.SecretOccurrence`

## Namespace

Grafeas \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ kind` | `int` Type of secret. |
| `↳ locations` | `array<https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.SecretLocation>` Locations where the secret is detected. |
| `↳ statuses` | `array<https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.SecretStatus>` Status of the secret. |
| `↳ data` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Any` Scan result of the secret. |
| `↳ digest` | `https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.Digest` Hash value, typically a digest for the secret data, that allows unique identification of a specific secret. |

### getKind

Type of secret.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setKind

Type of secret.

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

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

### getLocations

Locations where the secret is detected.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.SecretLocation>` |   |

### setLocations

Locations where the secret is detected.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.SecretLocation>` |

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

### getStatuses

Status of the secret.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.SecretStatus>` |   |

### setStatuses

Status of the secret.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.SecretStatus>` |

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

### getData

Scan result of the secret.

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

### hasData

### clearData

### setData

Scan result of the secret.

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

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

### getDigest

Hash value, typically a digest for the secret data, that allows unique
identification of a specific secret.

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

### hasDigest

### clearDigest

### setDigest

Hash value, typically a digest for the secret data, that allows unique
identification of a specific secret.

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

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