public static final class AggregateDataObjectsRequest.Builder extends GeneratedMessage.Builder<AggregateDataObjectsRequest.Builder> implements AggregateDataObjectsRequestOrBuilderRequest message for DataObjectSearchService.AggregateDataObjects.
Protobuf type google.cloud.vectorsearch.v1beta.AggregateDataObjectsRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AggregateDataObjectsRequest.BuilderImplements
AggregateDataObjectsRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AggregateDataObjectsRequest build()| Returns | |
|---|---|
| Type | Description |
AggregateDataObjectsRequest |
|
buildPartial()
public AggregateDataObjectsRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
AggregateDataObjectsRequest |
|
clear()
public AggregateDataObjectsRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
AggregateDataObjectsRequest.Builder |
|
clearAggregate()
public AggregateDataObjectsRequest.Builder clearAggregate()Required. The aggregation method to apply to the query.
.google.cloud.vectorsearch.v1beta.AggregationMethod aggregate = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AggregateDataObjectsRequest.Builder |
This builder for chaining. |
clearFilter()
public AggregateDataObjectsRequest.Builder clearFilter()Optional. A JSON filter expression, e.g. {"genre": {"$eq": "sci-fi"}}, represented as a google.protobuf.Struct.
.google.protobuf.Struct filter = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AggregateDataObjectsRequest.Builder |
|
clearParent()
public AggregateDataObjectsRequest.Builder clearParent() Required. The resource name of the Collection for which to query.
Format: projects/{project}/locations/{location}/collections/{collection}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
AggregateDataObjectsRequest.Builder |
This builder for chaining. |
getAggregate()
public AggregationMethod getAggregate()Required. The aggregation method to apply to the query.
.google.cloud.vectorsearch.v1beta.AggregationMethod aggregate = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AggregationMethod |
The aggregate. |
getAggregateValue()
public int getAggregateValue()Required. The aggregation method to apply to the query.
.google.cloud.vectorsearch.v1beta.AggregationMethod aggregate = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for aggregate. |
getDefaultInstanceForType()
public AggregateDataObjectsRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AggregateDataObjectsRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getFilter()
public Struct getFilter()Optional. A JSON filter expression, e.g. {"genre": {"$eq": "sci-fi"}}, represented as a google.protobuf.Struct.
.google.protobuf.Struct filter = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Struct |
The filter. |
getFilterBuilder()
public Struct.Builder getFilterBuilder()Optional. A JSON filter expression, e.g. {"genre": {"$eq": "sci-fi"}}, represented as a google.protobuf.Struct.
.google.protobuf.Struct filter = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getFilterOrBuilder()
public StructOrBuilder getFilterOrBuilder()Optional. A JSON filter expression, e.g. {"genre": {"$eq": "sci-fi"}}, represented as a google.protobuf.Struct.
.google.protobuf.Struct filter = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
StructOrBuilder |
|
getParent()
public String getParent() Required. The resource name of the Collection for which to query.
Format: projects/{project}/locations/{location}/collections/{collection}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes() Required. The resource name of the Collection for which to query.
Format: projects/{project}/locations/{location}/collections/{collection}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for parent. |
hasFilter()
public boolean hasFilter()Optional. A JSON filter expression, e.g. {"genre": {"$eq": "sci-fi"}}, represented as a google.protobuf.Struct.
.google.protobuf.Struct filter = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the filter field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFilter(Struct value)
public AggregateDataObjectsRequest.Builder mergeFilter(Struct value)Optional. A JSON filter expression, e.g. {"genre": {"$eq": "sci-fi"}}, represented as a google.protobuf.Struct.
.google.protobuf.Struct filter = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
AggregateDataObjectsRequest.Builder |
|
mergeFrom(AggregateDataObjectsRequest other)
public AggregateDataObjectsRequest.Builder mergeFrom(AggregateDataObjectsRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
AggregateDataObjectsRequest |
| Returns | |
|---|---|
| Type | Description |
AggregateDataObjectsRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AggregateDataObjectsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AggregateDataObjectsRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AggregateDataObjectsRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AggregateDataObjectsRequest.Builder |
|
setAggregate(AggregationMethod value)
public AggregateDataObjectsRequest.Builder setAggregate(AggregationMethod value)Required. The aggregation method to apply to the query.
.google.cloud.vectorsearch.v1beta.AggregationMethod aggregate = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
AggregationMethodThe aggregate to set. |
| Returns | |
|---|---|
| Type | Description |
AggregateDataObjectsRequest.Builder |
This builder for chaining. |
setAggregateValue(int value)
public AggregateDataObjectsRequest.Builder setAggregateValue(int value)Required. The aggregation method to apply to the query.
.google.cloud.vectorsearch.v1beta.AggregationMethod aggregate = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for aggregate to set. |
| Returns | |
|---|---|
| Type | Description |
AggregateDataObjectsRequest.Builder |
This builder for chaining. |
setFilter(Struct value)
public AggregateDataObjectsRequest.Builder setFilter(Struct value)Optional. A JSON filter expression, e.g. {"genre": {"$eq": "sci-fi"}}, represented as a google.protobuf.Struct.
.google.protobuf.Struct filter = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
AggregateDataObjectsRequest.Builder |
|
setFilter(Struct.Builder builderForValue)
public AggregateDataObjectsRequest.Builder setFilter(Struct.Builder builderForValue)Optional. A JSON filter expression, e.g. {"genre": {"$eq": "sci-fi"}}, represented as a google.protobuf.Struct.
.google.protobuf.Struct filter = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
AggregateDataObjectsRequest.Builder |
|
setParent(String value)
public AggregateDataObjectsRequest.Builder setParent(String value) Required. The resource name of the Collection for which to query.
Format: projects/{project}/locations/{location}/collections/{collection}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe parent to set. |
| Returns | |
|---|---|
| Type | Description |
AggregateDataObjectsRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public AggregateDataObjectsRequest.Builder setParentBytes(ByteString value) Required. The resource name of the Collection for which to query.
Format: projects/{project}/locations/{location}/collections/{collection}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
AggregateDataObjectsRequest.Builder |
This builder for chaining. |