Reference documentation and code samples for the Google Cloud Design Center V1 Client class RootModule.

Metadata for a root module.

Generated from protobuf message `google.cloud.designcenter.v1.RootModule`

## Namespace

Google \\ Cloud \\ DesignCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ id` | `string` Identifier of the root module. This is the directory name of the root module in the generated terraform which is also same as the corresponding component ID. |
| `↳ components` | `string[]` List of Application Design Center component names associated with this root module. For standard app template type components, this list will have a single element. For service / workload / asset components, this list will contain all such component names. |
| `↳ dependencies` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.RootModuleDependency>` Dependencies of this root module. The dependency graph of root modules must be acyclic. |
| `↳ input_variables` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.RootInputVariable>` List of input variables of this root module. |
| `↳ output_variables` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.RootOutputVariable>` List of output variables of this root module. |

### getId

Identifier of the root module. This is the directory name of the root
module in the generated terraform which is also same as the corresponding
component ID.

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

### setId

Identifier of the root module. This is the directory name of the root
module in the generated terraform which is also same as the corresponding
component ID.

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

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

### getComponents

List of Application Design Center component names associated with this root
module. For standard app template type components, this list will have a
single element. For service / workload / asset components, this list will
contain all such component names.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setComponents

List of Application Design Center component names associated with this root
module. For standard app template type components, this list will have a
single element. For service / workload / asset components, this list will
contain all such component names.

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

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

### getDependencies

Dependencies of this root module. The dependency graph of root modules
must be acyclic.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.RootModuleDependency>` |   |

### setDependencies

Dependencies of this root module. The dependency graph of root modules
must be acyclic.

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

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

### getInputVariables

List of input variables of this root module.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.RootInputVariable>` |   |

### setInputVariables

List of input variables of this root module.

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

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

### getOutputVariables

List of output variables of this root module.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.RootOutputVariable>` |   |

### setOutputVariables

List of output variables of this root module.

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

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