# Google Cloud Vision Ai V1 Client - Class UpdateSearchHypernymRequest (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 UpdateSearchHypernymRequest.

Request message for updating SearchHypernym.

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

## Namespace

Google \\ Cloud \\ VisionAI \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ search_hypernym` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.SearchHypernym` Required. The SearchHypernym to update. The search hypernym's `name` field is used to identify the search hypernym to be updated. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}` |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` The list of fields to be updated. If left unset, all field paths will be updated/overwritten. |

### getSearchHypernym

Required. The SearchHypernym to update.

The search hypernym's `name` field is used to identify the search hypernym
to be updated. Format:
`projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}`

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

### hasSearchHypernym

### clearSearchHypernym

### setSearchHypernym

Required. The SearchHypernym to update.

The search hypernym's `name` field is used to identify the search hypernym
to be updated. Format:
`projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}`

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

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

### getUpdateMask

The list of fields to be updated. If left unset, all field paths will be
updated/overwritten.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask|null` |   |

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

The list of fields to be updated. If left unset, all field paths will be
updated/overwritten.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` |

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `searchHypernym` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.SearchHypernym` Required. The SearchHypernym to update. The search hypernym's `name` field is used to identify the search hypernym to be updated. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}` |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` The list of fields to be updated. If left unset, all field paths will be updated/overwritten. |

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