public interface QueryDataObjectsRequestOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getFilter()
public abstract Struct 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.
.google.protobuf.Struct filter = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Struct |
The filter. |
getFilterOrBuilder()
public abstract StructOrBuilder getFilterOrBuilder() 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.
.google.protobuf.Struct filter = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
StructOrBuilder |
|
getOutputFields()
public abstract OutputFields getOutputFields()Optional. Mask specifying which fields to return.
.google.cloud.vectorsearch.v1.OutputFields output_fields = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
OutputFields |
The outputFields. |
getOutputFieldsOrBuilder()
public abstract OutputFieldsOrBuilder getOutputFieldsOrBuilder()Optional. Mask specifying which fields to return.
.google.cloud.vectorsearch.v1.OutputFields output_fields = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
OutputFieldsOrBuilder |
|
getPageSize()
public abstract int getPageSize()Optional. The standard list page size. Default is 100. The maximum value is 1000; values above 1000 will be coerced to 1000.
int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The pageSize. |
getPageToken()
public abstract String getPageToken()Optional. The standard list page token. Typically obtained via QueryDataObjectsResponse.next_page_token of the previous DataObjectSearchService.QueryDataObjects call.
string page_token = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The pageToken. |
getPageTokenBytes()
public abstract ByteString getPageTokenBytes()Optional. The standard list page token. Typically obtained via QueryDataObjectsResponse.next_page_token of the previous DataObjectSearchService.QueryDataObjects call.
string page_token = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for pageToken. |
getParent()
public abstract 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 abstract 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 abstract boolean hasFilter() 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.
.google.protobuf.Struct filter = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the filter field is set. |
hasOutputFields()
public abstract boolean hasOutputFields()Optional. Mask specifying which fields to return.
.google.cloud.vectorsearch.v1.OutputFields output_fields = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the outputFields field is set. |