# Google Cloud Vm Migration V1 Client - Class ReplicationCycle (1.4.0)

1.4.0 (latest) 1.3.0 1.2.1 1.1.0 1.0.5 0.6.5 0.5.2 0.4.2 0.3.2 0.2.3 Reference documentation and code samples for the Google Cloud Vm Migration V1 Client class ReplicationCycle.

ReplicationCycle contains information about the current replication cycle
status.

Generated from protobuf message `google.cloud.vmmigration.v1.ReplicationCycle`

## Namespace

Google \\ Cloud \\ VMMigration \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` The identifier of the ReplicationCycle. |
| `↳ cycle_number` | `int` The cycle's ordinal number. |
| `↳ start_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The time the replication cycle has started. |
| `↳ end_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The time the replication cycle has ended. |
| `↳ total_pause_duration` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` The accumulated duration the replication cycle was paused. |
| `↳ progress_percent` | `int` The current progress in percentage of this cycle. Was replaced by 'steps' field, which breaks down the cycle progression more accurately. |
| `↳ steps` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.CycleStep>` The cycle's steps list representing its progress. |
| `↳ state` | `int` State of the ReplicationCycle. |
| `↳ error` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` Output only. Provides details on the state of the cycle in case of an error. |
| `↳ warnings` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.MigrationWarning>` Output only. Warnings that occurred during the cycle. |

### getName

The identifier of the ReplicationCycle.

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

### setName

The identifier of the ReplicationCycle.

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

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

### getCycleNumber

The cycle's ordinal number.

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

### setCycleNumber

The cycle's ordinal number.

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

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

### getStartTime

The time the replication cycle has started.

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

### hasStartTime

### clearStartTime

### setStartTime

The time the replication cycle has started.

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

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

### getEndTime

The time the replication cycle has ended.

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

### hasEndTime

### clearEndTime

### setEndTime

The time the replication cycle has ended.

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

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

### getTotalPauseDuration

The accumulated duration the replication cycle was paused.

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

### hasTotalPauseDuration

### clearTotalPauseDuration

### setTotalPauseDuration

The accumulated duration the replication cycle was paused.

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

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

### getProgressPercent

The current progress in percentage of this cycle.

Was replaced by 'steps' field, which breaks down the cycle progression more
accurately.

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

### setProgressPercent

The current progress in percentage of this cycle.

Was replaced by 'steps' field, which breaks down the cycle progression more
accurately.

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

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

### getSteps

The cycle's steps list representing its progress.

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

### setSteps

The cycle's steps list representing its progress.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.CycleStep>` |

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

### getState

State of the ReplicationCycle.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.ReplicationCycle.State). |

### setState

State of the ReplicationCycle.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.ReplicationCycle.State). |

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

### getError

Output only. Provides details on the state of the cycle in case of an
error.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html|null` |   |

### hasError

### clearError

### setError

Output only. Provides details on the state of the cycle in case of an
error.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` |

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

### getWarnings

Output only. Warnings that occurred during the cycle.

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

### setWarnings

Output only. Warnings that occurred during the cycle.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.MigrationWarning>` |

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