# Google Cloud Datastore Admin V1 Client - Class MigrationProgressEvent (1.1.2)

1.1.2 (latest) 1.1.1 1.0.4 0.8.5 0.7.5 0.6.0 0.5.8 Reference documentation and code samples for the Google Cloud Datastore Admin V1 Client class MigrationProgressEvent.

An event signifying the start of a new step in a [migration from Cloud
Datastore to Cloud Firestore in Datastore
mode](https://cloud.google.com/datastore/docs/upgrade-to-firestore).

Generated from protobuf message `google.datastore.admin.v1.MigrationProgressEvent`

## Namespace

Google \\ Cloud \\ Datastore \\ Admin \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ step` | `int` The step that is starting. An event with step set to `START` indicates that the migration has been reverted back to the initial pre-migration state. |
| `↳ prepare_step_details` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastore-admin/latest/V1.MigrationProgressEvent.PrepareStepDetails` Details for the `PREPARE` step. |
| `↳ redirect_writes_step_details` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastore-admin/latest/V1.MigrationProgressEvent.RedirectWritesStepDetails` Details for the `REDIRECT_WRITES` step. |

### getStep

The step that is starting.

An event with step set to `START` indicates that the migration
has been reverted back to the initial pre-migration state.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [MigrationStep](https://docs.cloud.google.com/php/docs/reference/cloud-datastore-admin/latest/V1.MigrationStep). |

### setStep

The step that is starting.

An event with step set to `START` indicates that the migration
has been reverted back to the initial pre-migration state.

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

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

### getPrepareStepDetails

Details for the `PREPARE` step.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datastore-admin/latest/V1.MigrationProgressEvent.PrepareStepDetails|null` |   |

### hasPrepareStepDetails

### setPrepareStepDetails

Details for the `PREPARE` step.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastore-admin/latest/V1.MigrationProgressEvent.PrepareStepDetails` |

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

### getRedirectWritesStepDetails

Details for the `REDIRECT_WRITES` step.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datastore-admin/latest/V1.MigrationProgressEvent.RedirectWritesStepDetails|null` |   |

### hasRedirectWritesStepDetails

### setRedirectWritesStepDetails

Details for the `REDIRECT_WRITES` step.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastore-admin/latest/V1.MigrationProgressEvent.RedirectWritesStepDetails` |

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

### getStepDetails

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