# Google Cloud Vector Search V1 Client - Class UpdateDataObjectRequest (0.4.0)

0.4.0 (latest) 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Vector Search V1 Client class UpdateDataObjectRequest.

Request message for
[DataObjectService.UpdateDataObject](https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.Client.DataObjectServiceClient#_Google_Cloud_VectorSearch_V1_Client_DataObjectServiceClient__updateDataObject__).

Generated from protobuf message `google.cloud.vectorsearch.v1.UpdateDataObjectRequest`

## Namespace

Google \\ Cloud \\ VectorSearch \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ data_object` | `https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.DataObject` Required. The DataObject which replaces the resource on the server. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Optional. The update mask applies to the resource. See [google.protobuf.FieldMask](https://protobuf.dev/reference/php/api-docs/google.protobuf.FieldMask). |

### getDataObject

Required. The DataObject which replaces the resource on the server.

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

### hasDataObject

### clearDataObject

### setDataObject

Required. The DataObject which replaces the resource on the server.

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

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

### getUpdateMask

Optional. The update mask applies to the resource. See
[google.protobuf.FieldMask](https://protobuf.dev/reference/php/api-docs/google.protobuf.FieldMask).

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

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

Optional. The update mask applies to the resource. See
[google.protobuf.FieldMask](https://protobuf.dev/reference/php/api-docs/google.protobuf.FieldMask).

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `dataObject` | `https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.DataObject` Required. The DataObject which replaces the resource on the server. |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Optional. The update mask applies to the resource. See [google.protobuf.FieldMask](https://protobuf.dev/reference/php/api-docs/google.protobuf.FieldMask). |

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