0.9.0 (latest) 0.8.0 0.7.2 0.5.0 0.4.0 0.3.0 0.2.3 0.1.2 Reference documentation and code samples for the Google Cloud Chronicle Client class Service.

Information about a Windows service.

Generated from protobuf message `google.backstory.Service`

## Namespace

Google \\ Backstory

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ display_name` | `string` The user-friendly display name of the service. |
| `↳ service_type` | `int` Deprecated: use service_types instead. The type of service. |
| `↳ service_types` | `int[]` The list of service types. |
| `↳ startup_type` | `int` The startup type of the service. |
| `↳ state` | `int` The status of the service. |

### getDisplayName

The user-friendly display name of the service.

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

### setDisplayName

The user-friendly display name of the service.

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

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

### getServiceType

Deprecated: use service_types instead.

The type of service.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ServiceType](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.Service.ServiceType.md.txt). |

### setServiceType

Deprecated: use service_types instead.

The type of service.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ServiceType](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.Service.ServiceType.md.txt). |

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

### getServiceTypes

The list of service types.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<int>` |   |

### setServiceTypes

The list of service types.

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

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

### getStartupType

The startup type of the service.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [StartupType](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.Service.StartupType.md.txt). |

### setStartupType

The startup type of the service.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [StartupType](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.Service.StartupType.md.txt). |

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

### getState

The status of the service.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.Service.State.md.txt). |

### setState

The status of the service.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.Service.State.md.txt). |

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