# Google Cloud Service Management V1 Client - Class OperationMetadata (2.2.0)

2.2.0 (latest) 2.1.2 2.0.5 1.3.5 1.2.2 1.1.1 1.0.6 Reference documentation and code samples for the Google Cloud Service Management V1 Client class OperationMetadata.

The metadata associated with a long running operation resource.

Generated from protobuf message `google.api.servicemanagement.v1.OperationMetadata`

## Namespace

Google \\ Cloud \\ ServiceManagement \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ resource_names` | `string[]` The full name of the resources that this operation is directly associated with. |
| `↳ steps` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-service-management/latest/V1.OperationMetadata.Step>` Detailed status information for each step. The order is undetermined. |
| `↳ progress_percentage` | `int` Percentage of completion of this operation, ranging from 0 to 100. |
| `↳ start_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The start time of the operation. |

### getResourceNames

The full name of the resources that this operation is directly
associated with.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setResourceNames

The full name of the resources that this operation is directly
associated with.

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

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

### getSteps

Detailed status information for each step. The order is undetermined.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-service-management/latest/V1.OperationMetadata.Step>` |   |

### setSteps

Detailed status information for each step. The order is undetermined.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-service-management/latest/V1.OperationMetadata.Step>` |

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

### getProgressPercentage

Percentage of completion of this operation, ranging from 0 to 100.

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

### setProgressPercentage

Percentage of completion of this operation, ranging from 0 to 100.

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

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

### getStartTime

The start time of the operation.

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

### hasStartTime

### clearStartTime

### setStartTime

The start time of the operation.

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

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