# Google Cloud OsConfig V1 Client - Class OneTimeSchedule (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 OneTimeSchedule.

Sets the time for a one time patch deployment. Timestamp is in
[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.

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

## Namespace

Google \\ Cloud \\ OsConfig \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ execute_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Required. The desired patch job execution time. |

### getExecuteTime

Required. The desired patch job execution time.

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

### hasExecuteTime

### clearExecuteTime

### setExecuteTime

Required. The desired patch job execution time.

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

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