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

Represents a source file which is used to generate the service configuration
defined by `google.api.Service`.

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

## Namespace

Google \\ Cloud \\ ServiceManagement \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ id` | `string` A unique ID for a specific instance of this message, typically assigned by the client for tracking purpose. If empty, the server may choose to generate one instead. |
| `↳ files` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-service-management/latest/V1.ConfigFile>` Set of source configuration files that are used to generate a service configuration (`google.api.Service`). |

### getId

A unique ID for a specific instance of this message, typically assigned
by the client for tracking purpose. If empty, the server may choose to
generate one instead.

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

### setId

A unique ID for a specific instance of this message, typically assigned
by the client for tracking purpose. If empty, the server may choose to
generate one instead.

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

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

### getFiles

Set of source configuration files that are used to generate a service
configuration (`google.api.Service`).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-service-management/latest/V1.ConfigFile>` |   |

### setFiles

Set of source configuration files that are used to generate a service
configuration (`google.api.Service`).

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

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