# Google Cloud Vector Search V1 Client - Class BatchUpdateDataObjectsRequest (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 BatchUpdateDataObjectsRequest.

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

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

## Namespace

Google \\ Cloud \\ VectorSearch \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The resource name of the Collection to update the DataObjects in. Format: `projects/{project}/locations/{location}/collections/{collection}`. The parent field in the UpdateDataObjectRequest messages must match this field. |
| `↳ requests` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.UpdateDataObjectRequest>` Required. The request message specifying the resources to update. A maximum of 1000 DataObjects can be updated in a batch. |

### getParent

Required. The resource name of the Collection to update the DataObjects in.

Format: `projects/{project}/locations/{location}/collections/{collection}`.
The parent field in the UpdateDataObjectRequest messages must match this
field.

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

### setParent

Required. The resource name of the Collection to update the DataObjects in.

Format: `projects/{project}/locations/{location}/collections/{collection}`.
The parent field in the UpdateDataObjectRequest messages must match this
field.

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

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

### getRequests

Required. The request message specifying the resources to update.

A maximum of 1000 DataObjects can be updated in a batch.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.UpdateDataObjectRequest>` |   |

### setRequests

Required. The request message specifying the resources to update.

A maximum of 1000 DataObjects can be updated in a batch.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The resource name of the Collection to update the DataObjects in. Format: `projects/{project}/locations/{location}/collections/{collection}`. The parent field in the UpdateDataObjectRequest messages must match this field. Please see DataObjectServiceClient::collectionName() for help formatting this field. |
| `requests` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.UpdateDataObjectRequest>` Required. The request message specifying the resources to update. A maximum of 1000 DataObjects can be updated in a batch. |

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