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

Request message for SubmitConfigSource method.

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

## 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_source` | `https://docs.cloud.google.com/php/docs/reference/cloud-service-management/latest/V1.ConfigSource` Required. The source configuration for the service. |
| `↳ validate_only` | `bool` Optional. If set, this will result in the generation of a `google.api.Service` configuration based on the `ConfigSource` provided, but the generated config and the sources will NOT be persisted. |

### 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` |   |

### getConfigSource

Required. The source configuration for the service.

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

### hasConfigSource

### clearConfigSource

### setConfigSource

Required. The source configuration for the service.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-service-management/latest/V1.ConfigSource` |

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

### getValidateOnly

Optional. If set, this will result in the generation of a
`google.api.Service` configuration based on the `ConfigSource` provided,
but the generated config and the sources will NOT be persisted.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setValidateOnly

Optional. If set, this will result in the generation of a
`google.api.Service` configuration based on the `ConfigSource` provided,
but the generated config and the sources will NOT be persisted.

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

| **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`. |
| `configSource` | `https://docs.cloud.google.com/php/docs/reference/cloud-service-management/latest/V1.ConfigSource` Required. The source configuration for the service. |
| `validateOnly` | `bool` Optional. If set, this will result in the generation of a `google.api.Service` configuration based on the `ConfigSource` provided, but the generated config and the sources will NOT be persisted. |

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