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

Message for creating a share of a catalog.

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

## Namespace

Google \\ Cloud \\ DesignCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent resource in which shares are created. |
| `↳ share_id` | `string` Required. The ID of the share to create. |
| `↳ share` | `https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.Share` Required. The share to create. |

### getParent

Required. The parent resource in which shares are created.

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

### setParent

Required. The parent resource in which shares are created.

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

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

### getShareId

Required. The ID of the share to create.

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

### setShareId

Required. The ID of the share to create.

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

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

### getShare

Required. The share to create.

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

### hasShare

### clearShare

### setShare

Required. The share to create.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent resource in which shares are created. Please see DesignCenterClient::catalogName() for help formatting this field. |
| `share` | `https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.Share` Required. The share to create. |
| `shareId` | `string` Required. The ID of the share to create. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.CreateShareRequest` |   |