# Google Cloud OsConfig V1 Client - Class FixedOrPercent (2.2.3)

2.2.3 (latest) 2.2.2 2.1.0 2.0.5 1.3.5 1.2.2 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud OsConfig V1 Client class FixedOrPercent.

Message encapsulating a value that can be either absolute ("fixed") or
relative ("percent") to a value.

Generated from protobuf message `google.cloud.osconfig.v1.FixedOrPercent`

## Namespace

Google \\ Cloud \\ OsConfig \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ fixed` | `int` Specifies a fixed value. |
| `↳ percent` | `int` Specifies the relative value defined as a percentage, which will be multiplied by a reference value. |

### getFixed

Specifies a fixed value.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasFixed

### setFixed

Specifies a fixed value.

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

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

### getPercent

Specifies the relative value defined as a percentage, which will be
multiplied by a reference value.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasPercent

### setPercent

Specifies the relative value defined as a percentage, which will be
multiplied by a reference value.

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

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

### getMode

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