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 CommonMetadata.

Metadata common to all Datastore Admin operations.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ start_time` | `Google\Protobuf\Timestamp` The time that work began on the operation. |
| `↳ end_time` | `Google\Protobuf\Timestamp` The time the operation ended, either successfully or otherwise. |
| `↳ operation_type` | `int` The type of the operation. Can be used as a filter in ListOperationsRequest. |
| `↳ labels` | `array|Google\Protobuf\Internal\MapField` The client-assigned labels which were provided when the operation was created. May also include additional labels. |
| `↳ state` | `int` The current state of the Operation. |

### getStartTime

The time that work began on the operation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasStartTime

### clearStartTime

### setStartTime

The time that work began on the operation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getEndTime

The time the operation ended, either successfully or otherwise.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasEndTime

### clearEndTime

### setEndTime

The time the operation ended, either successfully or otherwise.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getOperationType

The type of the operation. Can be used as a filter in
ListOperationsRequest.

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

### setOperationType

The type of the operation. Can be used as a filter in
ListOperationsRequest.

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

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

### getLabels

The client-assigned labels which were provided when the operation was
created. May also include additional labels.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Internal\MapField` |   |

### setLabels

The client-assigned labels which were provided when the operation was
created. May also include additional labels.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|Google\Protobuf\Internal\MapField` |

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

### getState

The current state of the Operation.

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

### setState

The current state of the Operation.

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

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