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

Represents a dependency on another Terraform module.

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

## Namespace

Google \\ Cloud \\ DesignCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Optional. Local name of the module instance. |
| `↳ source` | `string` Optional. Source of the module. |
| `↳ version` | `string` Optional. Version constraint for the module. |

### getName

Optional. Local name of the module instance.

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

### setName

Optional. Local name of the module instance.

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

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

### getSource

Optional. Source of the module.

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

### setSource

Optional. Source of the module.

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

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

### getVersion

Optional. Version constraint for the module.

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

### setVersion

Optional. Version constraint for the module.

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

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