# Google Cloud Service Control V1 Client - Class MetricValueSet (2.2.0)

2.2.0 (latest) 2.1.1 2.0.4 1.4.4 1.3.0 1.2.1 1.1.1 1.0.6 Reference documentation and code samples for the Google Cloud Service Control V1 Client class MetricValueSet.

Represents a set of metric values in the same metric.

Each metric value in the set should have a unique combination of start time,
end time, and label values.

Generated from protobuf message `google.api.servicecontrol.v1.MetricValueSet`

## Namespace

Google \\ Cloud \\ ServiceControl \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ metric_name` | `string` The metric name defined in the service configuration. |
| `↳ metric_values` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-service-control/latest/V1.MetricValue>` The values in this metric. |

### getMetricName

The metric name defined in the service configuration.

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

### setMetricName

The metric name defined in the service configuration.

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

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

### getMetricValues

The values in this metric.

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

### setMetricValues

The values in this metric.

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

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