# Google Cloud Service Management V1 Client - Class ManagedService (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 ManagedService.

The full representation of a Service that is managed by
Google Service Management.

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

## Namespace

Google \\ Cloud \\ ServiceManagement \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ service_name` | `string` The name of the service. See the [overview](https://cloud.google.com/service-infrastructure/docs/overview) for naming requirements. |
| `↳ producer_project_id` | `string` ID of the project that produces and owns this service. |

### getServiceName

The name of the service. See the
[overview](https://cloud.google.com/service-infrastructure/docs/overview)
for naming requirements.

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

### setServiceName

The name of the service. See the
[overview](https://cloud.google.com/service-infrastructure/docs/overview)
for naming requirements.

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

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

### getProducerProjectId

ID of the project that produces and owns this service.

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

### setProducerProjectId

ID of the project that produces and owns this service.

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

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