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

Represents a service configuration with its name and id.

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

## Namespace

Google \\ Cloud \\ ServiceManagement \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Resource name of a service config. It must have the following format: "services/{service name}/configs/{config id}". |

### getName

Resource name of a service config. It must have the following
format: "services/{service name}/configs/{config id}".

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

### setName

Resource name of a service config. It must have the following
format: "services/{service name}/configs/{config id}".

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

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