# Google Cloud Migration Center V1 Client - Class RunningService (1.2.3)

1.2.3 (latest) 1.2.2 1.1.2 1.0.3 0.4.5 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Migration Center V1 Client class RunningService.

Guest OS running service details.

Generated from protobuf message `google.cloud.migrationcenter.v1.RunningService`

## Namespace

Google \\ Cloud \\ MigrationCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ service_name` | `string` Service name. |
| `↳ state` | `int` Service state (OS-agnostic). |
| `↳ start_mode` | `int` Service start mode (OS-agnostic). |
| `↳ exe_path` | `string` Service binary path. |
| `↳ cmdline` | `string` Service command line. |
| `↳ pid` | `int|string` Service pid. |

### getServiceName

Service name.

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

### setServiceName

Service name.

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

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

### getState

Service state (OS-agnostic).

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

### setState

Service state (OS-agnostic).

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

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

### getStartMode

Service start mode (OS-agnostic).

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

### setStartMode

Service start mode (OS-agnostic).

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

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

### getExePath

Service binary path.

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

### setExePath

Service binary path.

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

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

### getCmdline

Service command line.

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

### setCmdline

Service command line.

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

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

### getPid

Service pid.

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

### setPid

Service pid.

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

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