1.8.4 (latest) 1.7.2 1.6.0 1.5.0 1.4.0 1.3.1 1.2.1 1.1.3 1.0.0 0.6.5 0.5.1 0.4.4 0.3.13 Reference documentation and code samples for the Google Cloud Artifact Registry V1 Client class Hash.

A hash of file content.

Generated from protobuf message `google.devtools.artifactregistry.v1.Hash`

## Namespace

Google \\ Cloud \\ ArtifactRegistry \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `int` The algorithm used to compute the hash value. |
| `↳ value` | `string` The hash value. |

### getType

The algorithm used to compute the hash value.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [HashType](https://docs.cloud.google.com/php/docs/reference/cloud-artifact-registry/latest/V1.Hash.HashType). |

### setType

The algorithm used to compute the hash value.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [HashType](https://docs.cloud.google.com/php/docs/reference/cloud-artifact-registry/latest/V1.Hash.HashType). |

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

### getValue

The hash value.

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

### setValue

The hash value.

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

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