Reference documentation and code samples for the Google Cloud Vector Search V1 Client class AggregateDataObjectsRequest.
Request message for DataObjectSearchService.AggregateDataObjects.
Generated from protobuf message google.cloud.vectorsearch.v1.AggregateDataObjectsRequest
Namespace
Google \ Cloud \ VectorSearch \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. The resource name of the Collection for which to query. Format: |
↳ filter |
Google\Protobuf\Struct
Optional. A JSON filter expression, e.g. |
↳ aggregate |
int
Required. The aggregation method to apply to the query. |
getParent
Required. The resource name of the Collection for which to query.
Format: projects/{project}/locations/{location}/collections/{collection}
| Returns | |
|---|---|
| Type | Description |
string |
|
setParent
Required. The resource name of the Collection for which to query.
Format: projects/{project}/locations/{location}/collections/{collection}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getFilter
Optional. A JSON filter expression, e.g. {"genre": {"$eq": "sci-fi"}},
represented as a google.protobuf.Struct.
An empty filter (}) matches all data objects. Otherwise, each JSON
object in the filter must have exactly one key: either a field name mapped
to one operator ({"price": {"$lt": 100}}), or a logical operator: $and
or $or with a list of filters, or $not with one filter. Field
operators and their values: $eq and $ne take a string, number or bool;
$lt, $lte, $gt and $gte take a number; $in, $nin and $all
take a list of strings; $exists takes a bool. Several keys in one object
(implicit AND) and implicit equality ({"genre": "sci-fi"}) are rejected;
use $and and $eq instead.
Logical operators can be nested at most 2 levels deep, e.g.
{"$and": [{"$or": [{"a": {"$eq": 1}}, {"b": {"$eq": 2}}]}]}. Deeper
filters are rejected with INVALID_ARGUMENT.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Struct|null |
|
hasFilter
clearFilter
setFilter
Optional. A JSON filter expression, e.g. {"genre": {"$eq": "sci-fi"}},
represented as a google.protobuf.Struct.
An empty filter (}) matches all data objects. Otherwise, each JSON
object in the filter must have exactly one key: either a field name mapped
to one operator ({"price": {"$lt": 100}}), or a logical operator: $and
or $or with a list of filters, or $not with one filter. Field
operators and their values: $eq and $ne take a string, number or bool;
$lt, $lte, $gt and $gte take a number; $in, $nin and $all
take a list of strings; $exists takes a bool. Several keys in one object
(implicit AND) and implicit equality ({"genre": "sci-fi"}) are rejected;
use $and and $eq instead.
Logical operators can be nested at most 2 levels deep, e.g.
{"$and": [{"$or": [{"a": {"$eq": 1}}, {"b": {"$eq": 2}}]}]}. Deeper
filters are rejected with INVALID_ARGUMENT.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Struct
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAggregate
Required. The aggregation method to apply to the query.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type AggregationMethod. |
setAggregate
Required. The aggregation method to apply to the query.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type AggregationMethod. |
| Returns | |
|---|---|
| Type | Description |
$this |
|