0.4.4 (latest) 0.4.3 0.3.0 0.2.1 0.1.4 Reference documentation and code samples for the Google Cloud Api Hub V1 Client class CreatePluginInstanceRequest.

The
[CreatePluginInstance](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Client.ApiHubPluginClient#_Google_Cloud_ApiHub_V1_Client_ApiHubPluginClient__createPluginInstance__)
method's request.

Generated from protobuf message `google.cloud.apihub.v1.CreatePluginInstanceRequest`

## Namespace

Google \\ Cloud \\ ApiHub \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent of the plugin instance resource. Format: `projects/{project}/locations/{location}/plugins/{plugin}` |
| `↳ plugin_instance_id` | `string` Optional. The ID to use for the plugin instance, which will become the final component of the plugin instance's resource name. This field is optional. \* \* If provided, the same will be used. The service will throw an error if the specified id is already used by another plugin instance in the plugin resource. \* \* If not provided, a system generated id will be used. This value should be 4-63 characters, and valid characters are /\[a-z\]\[A-Z\]\[0-9\]-_/. |
| `↳ plugin_instance` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.PluginInstance` Required. The plugin instance to create. |

### getParent

Required. The parent of the plugin instance resource.

Format: `projects/{project}/locations/{location}/plugins/{plugin}`

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

### setParent

Required. The parent of the plugin instance resource.

Format: `projects/{project}/locations/{location}/plugins/{plugin}`

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

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

### getPluginInstanceId

Optional. The ID to use for the plugin instance, which will become the
final component of the plugin instance's resource name. This field is
optional.

- If provided, the same will be used. The service will throw an error if the specified id is already used by another plugin instance in the plugin resource.
- If not provided, a system generated id will be used. This value should be 4-63 characters, and valid characters are /\[a-z\]\[A-Z\]\[0-9\]-_/.

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

### setPluginInstanceId

Optional. The ID to use for the plugin instance, which will become the
final component of the plugin instance's resource name. This field is
optional.

- If provided, the same will be used. The service will throw an error if the specified id is already used by another plugin instance in the plugin resource.
- If not provided, a system generated id will be used. This value should be 4-63 characters, and valid characters are /\[a-z\]\[A-Z\]\[0-9\]-_/.

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

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

### getPluginInstance

Required. The plugin instance to create.

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

### hasPluginInstance

### clearPluginInstance

### setPluginInstance

Required. The plugin instance to create.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent of the plugin instance resource. Format: `projects/{project}/locations/{location}/plugins/{plugin}` Please see ApiHubPluginClient::pluginName() for help formatting this field. |
| `pluginInstance` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.PluginInstance` Required. The plugin instance to create. |
| `pluginInstanceId` | `string` Optional. The ID to use for the plugin instance, which will become the final component of the plugin instance's resource name. This field is optional. - - If provided, the same will be used. The service will throw an error if the specified id is already used by another plugin instance in the plugin resource. - - If not provided, a system generated id will be used. This value should be 4-63 characters, and valid characters are /\[a-z\]\[A-Z\]\[0-9\]-_/. |

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