# Cloud Vision V1 Client - Class ImportProductSetsRequest (2.2.1)

2.2.1 (latest) 2.2.0 2.1.3 2.0.3 1.10.3 1.9.4 1.8.0 1.7.6 1.6.8 Reference documentation and code samples for the Cloud Vision V1 Client class ImportProductSetsRequest.

Request message for the `ImportProductSets` method.

Generated from protobuf message `google.cloud.vision.v1.ImportProductSetsRequest`

## Namespace

Google \\ Cloud \\ Vision \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The project in which the ProductSets should be imported. Format is `projects/PROJECT_ID/locations/LOC_ID`. |
| `↳ input_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.ImportProductSetsInputConfig` Required. The input content for the list of requests. |

### getParent

Required. The project in which the ProductSets should be imported.

Format is `projects/PROJECT_ID/locations/LOC_ID`.

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

### setParent

Required. The project in which the ProductSets should be imported.

Format is `projects/PROJECT_ID/locations/LOC_ID`.

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

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

### getInputConfig

Required. The input content for the list of requests.

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

### hasInputConfig

### clearInputConfig

### setInputConfig

Required. The input content for the list of requests.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The project in which the ProductSets should be imported. Format is `projects/PROJECT_ID/locations/LOC_ID`. Please see ProductSearchClient::locationName() for help formatting this field. |
| `inputConfig` | `https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.ImportProductSetsInputConfig` Required. The input content for the list of requests. |

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