# Grafeas V1 Client - Class Hash (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 Hash.

Container message for hash values.

Generated from protobuf message `grafeas.v1.Hash`

## Namespace

Grafeas \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `string` Required. The type of hash that was performed, e.g. "SHA-256". |
| `↳ value` | `string` Required. The hash value. |

### getType

Required. The type of hash that was performed, e.g. "SHA-256".

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

### setType

Required. The type of hash that was performed, e.g. "SHA-256".

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

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

### getValue

Required. The hash value.

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

### setValue

Required. The hash value.

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

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