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

Response message for
[DataObjectSearchService.AggregateDataObjects](https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.Client.DataObjectSearchServiceClient#_Google_Cloud_VectorSearch_V1_Client_DataObjectSearchServiceClient__aggregateDataObjects__).

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

## Namespace

Google \\ Cloud \\ VectorSearch \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ aggregate_results` | `array<https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct>` Output only. The aggregated results of the query. |

### getAggregateResults

Output only. The aggregated results of the query.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct>` |   |

### setAggregateResults

Output only. The aggregated results of the query.

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

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