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

Request message for GetServiceConfig method.

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

## Namespace

Google \\ Cloud \\ ServiceManagement \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ service_name` | `string` Required. The name of the service. See the [overview](https://cloud.google.com/service-management/overview) for naming requirements. For example: `example.googleapis.com`. |
| `↳ config_id` | `string` Required. The id of the service configuration resource. This field must be specified for the server to return all fields, including `SourceInfo`. |
| `↳ view` | `int` Specifies which parts of the Service Config should be returned in the response. |

### getServiceName

Required. The name of the service. See the
[overview](https://cloud.google.com/service-management/overview) for naming
requirements. For example: `example.googleapis.com`.

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

### setServiceName

Required. The name of the service. See the
[overview](https://cloud.google.com/service-management/overview) for naming
requirements. For example: `example.googleapis.com`.

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

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

### getConfigId

Required. The id of the service configuration resource.

This field must be specified for the server to return all fields, including
`SourceInfo`.

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

### setConfigId

Required. The id of the service configuration resource.

This field must be specified for the server to return all fields, including
`SourceInfo`.

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

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

### getView

Specifies which parts of the Service Config should be returned in the
response.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ConfigView](https://docs.cloud.google.com/php/docs/reference/cloud-service-management/latest/V1.GetServiceConfigRequest.ConfigView). |

### setView

Specifies which parts of the Service Config should be returned in the
response.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `serviceName` | `string` Required. The name of the service. See the [overview](https://cloud.google.com/service-management/overview) for naming requirements. For example: `example.googleapis.com`. |
| `configId` | `string` Required. The id of the service configuration resource. This field must be specified for the server to return all fields, including `SourceInfo`. |
| `view` | `int` Specifies which parts of the Service Config should be returned in the response. For allowed values, use constants defined on [GetServiceConfigRequest\\ConfigView](https://docs.cloud.google.com/php/docs/reference/cloud-service-management/latest/V1.GetServiceConfigRequest.ConfigView) |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-service-management/latest/V1.GetServiceConfigRequest` |   |