# Google Cloud Security Compliance V1 Client - Class Trend (0.4.0)

0.4.0 (latest) 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the Google Cloud Security Compliance V1 Client class Trend.

The trend of a compliance metric.

Generated from protobuf message `google.cloud.cloudsecuritycompliance.v1.Trend`

## Namespace

Google \\ Cloud \\ CloudSecurityCompliance \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ duration` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` Output only. The duration for the trend. |
| `↳ value_percent` | `float` Output only. The trend value as a percentage. The value can be positive or negative. |

### getDuration

Output only. The duration for the trend.

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

### hasDuration

### clearDuration

### setDuration

Output only. The duration for the trend.

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

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

### getValuePercent

Output only. The trend value as a percentage. The value can be positive or
negative.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setValuePercent

Output only. The trend value as a percentage. The value can be positive or
negative.

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

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