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

Represents a resource declared within a module.

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

## 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 resource instance. |
| `↳ type` | `string` Optional. Type of the resource (e.g., "google_secret_manager_secret"). |

### getName

Optional. Local name of the resource instance.

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

### setName

Optional. Local name of the resource instance.

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

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

### getType

Optional. Type of the resource (e.g., "google_secret_manager_secret").

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

### setType

Optional. Type of the resource (e.g., "google_secret_manager_secret").

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

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