# Google Cloud Talent Solution V4 Client - Class HistogramQueryResult (2.3.0)

2.3.0 (latest) 2.2.1 2.1.3 2.0.2 1.3.5 1.2.2 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Talent Solution V4 Client class HistogramQueryResult.

Histogram result that matches
[HistogramQuery](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.HistogramQuery) specified in
searches.

Generated from protobuf message `google.cloud.talent.v4.HistogramQueryResult`

## Namespace

Google \\ Cloud \\ Talent \\ V4

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ histogram_query` | `string` Requested histogram expression. |
| `↳ histogram` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` A map from the values of the facet associated with distinct values to the number of matching entries with corresponding value. The key format is: \* \* (for string histogram) string values stored in the field. \* \* (for named numeric bucket) name specified in `bucket()` function, like for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`. \* \* (for anonymous numeric bucket) range formatted as `<low>-<high>`, for example, `0-1000`, `MIN-0`, and `0-MAX`. |

### getHistogramQuery

Requested histogram expression.

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

### setHistogramQuery

Requested histogram expression.

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

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

### getHistogram

A map from the values of the facet associated with distinct values to the
number of matching entries with corresponding value.

The key format is:

- (for string histogram) string values stored in the field.
- (for named numeric bucket) name specified in `bucket()` function, like for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
- (for anonymous numeric bucket) range formatted as `<low>-<high>`, for example, `0-1000`, `MIN-0`, and `0-MAX`.

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

### setHistogram

A map from the values of the facet associated with distinct values to the
number of matching entries with corresponding value.

The key format is:

- (for string histogram) string values stored in the field.
- (for named numeric bucket) name specified in `bucket()` function, like for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
- (for anonymous numeric bucket) range formatted as `<low>-<high>`, for example, `0-1000`, `MIN-0`, and `0-MAX`.

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

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