# Google Cloud Vision Ai V1 Client - Class CreateSearchHypernymRequest (0.3.0)

0.3.0 (latest) 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class CreateSearchHypernymRequest.

Request message for creating SearchHypernym.

Generated from protobuf message `google.cloud.visionai.v1.CreateSearchHypernymRequest`

## Namespace

Google \\ Cloud \\ VisionAI \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent resource where this SearchHypernym will be created. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}` |
| `↳ search_hypernym` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.SearchHypernym` Required. The SearchHypernym to create. |
| `↳ search_hypernym_id` | `string` Optional. The search hypernym id. If omitted, a random UUID will be generated. |

### getParent

Required. The parent resource where this SearchHypernym will be created.

Format: `projects/{project_number}/locations/{location}/corpora/{corpus}`

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

### setParent

Required. The parent resource where this SearchHypernym will be created.

Format: `projects/{project_number}/locations/{location}/corpora/{corpus}`

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

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

### getSearchHypernym

Required. The SearchHypernym to create.

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

### hasSearchHypernym

### clearSearchHypernym

### setSearchHypernym

Required. The SearchHypernym to create.

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

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

### getSearchHypernymId

Optional. The search hypernym id.

If omitted, a random UUID will be generated.

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

### hasSearchHypernymId

### clearSearchHypernymId

### setSearchHypernymId

Optional. The search hypernym id.

If omitted, a random UUID will be generated.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent resource where this SearchHypernym will be created. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}` Please see WarehouseClient::corpusName() for help formatting this field. |
| `searchHypernym` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.SearchHypernym` Required. The SearchHypernym to create. |
| `searchHypernymId` | `string` Optional. The search hypernym id. If omitted, a random UUID will be generated. |

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