# Google Cloud Migration Center V1 Client - Class HistogramChartData (1.2.3)

1.2.3 (latest) 1.2.2 1.1.2 1.0.3 0.4.5 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Migration Center V1 Client class HistogramChartData.

A Histogram Chart shows a distribution of values into buckets, showing
a count of values which fall into a bucket.

Generated from protobuf message `google.cloud.migrationcenter.v1.ReportSummary.HistogramChartData`

## Namespace

Google \\ Cloud \\ MigrationCenter \\ V1 \\ ReportSummary

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ buckets` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.ReportSummary.HistogramChartData.Bucket>` Buckets in the histogram. There will be `n+1` buckets matching `n` lower bounds in the request. The first bucket will be from -infinity to the first bound. Subsequent buckets will be between one bound and the next. The final bucket will be from the final bound to infinity. |

### getBuckets

Buckets in the histogram.

There will be `n+1` buckets matching `n` lower bounds in the request.
The first bucket will be from -infinity to the first bound.
Subsequent buckets will be between one bound and the next.
The final bucket will be from the final bound to infinity.

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

### setBuckets

Buckets in the histogram.

There will be `n+1` buckets matching `n` lower bounds in the request.
The first bucket will be from -infinity to the first bound.
Subsequent buckets will be between one bound and the next.
The final bucket will be from the final bound to infinity.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.ReportSummary.HistogramChartData.Bucket>` |

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