Vector Search v1 API - Class AggregateDataObjectsRequest (1.3.0)

public sealed class AggregateDataObjectsRequest : IMessage<AggregateDataObjectsRequest>, IEquatable<AggregateDataObjectsRequest>, IDeepCloneable<AggregateDataObjectsRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Vector Search v1 API class AggregateDataObjectsRequest.

Request message for [DataObjectSearchService.AggregateDataObjects][google.cloud.vectorsearch.v1.DataObjectSearchService.AggregateDataObjects].

Inheritance

object > AggregateDataObjectsRequest

Namespace

Google.Cloud.VectorSearch.V1

Assembly

Google.Cloud.VectorSearch.V1.dll

Constructors

AggregateDataObjectsRequest()

public AggregateDataObjectsRequest()

AggregateDataObjectsRequest(AggregateDataObjectsRequest)

public AggregateDataObjectsRequest(AggregateDataObjectsRequest other)
Parameter
Name Description
other AggregateDataObjectsRequest

Properties

Aggregate

public AggregationMethod Aggregate { get; set; }

Required. The aggregation method to apply to the query.

Property Value
Type Description
AggregationMethod

Filter

public Struct Filter { get; set; }

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.

Property Value
Type Description
Struct

Parent

public string Parent { get; set; }

Required. The resource name of the Collection for which to query. Format: projects/{project}/locations/{location}/collections/{collection}

Property Value
Type Description
string

ParentAsCollectionName

public CollectionName ParentAsCollectionName { get; set; }

CollectionName-typed view over the Parent resource name property.

Property Value
Type Description
CollectionName