public interface QueryRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
com.google.protobuf.Struct |
getFilter()
The filter to apply.
|
com.google.protobuf.StructOrBuilder |
getFilterOrBuilder()
The filter to apply.
|
java.lang.String |
getId()
The unique ID of the vector to be used as a query vector.
|
com.google.protobuf.ByteString |
getIdBytes()
The unique ID of the vector to be used as a query vector.
|
boolean |
getIncludeMetadata()
Indicates whether metadata is included in the response as well as the ids.
|
boolean |
getIncludeValues()
Indicates whether vector values are included in the response.
|
java.lang.String |
getNamespace()
The namespace to query.
|
com.google.protobuf.ByteString |
getNamespaceBytes()
The namespace to query.
|
QueryVector |
getQueries(int index)
Deprecated.
|
int |
getQueriesCount()
Deprecated.
|
java.util.List<QueryVector> |
getQueriesList()
Deprecated.
|
QueryVectorOrBuilder |
getQueriesOrBuilder(int index)
Deprecated.
|
java.util.List<? extends QueryVectorOrBuilder> |
getQueriesOrBuilderList()
Deprecated.
|
SparseValues |
getSparseVector()
The query sparse values.
|
SparseValuesOrBuilder |
getSparseVectorOrBuilder()
The query sparse values.
|
int |
getTopK()
The number of results to return for each query.
|
float |
getVector(int index)
The query vector.
|
int |
getVectorCount()
The query vector.
|
java.util.List<java.lang.Float> |
getVectorList()
The query vector.
|
boolean |
hasFilter()
The filter to apply.
|
boolean |
hasSparseVector()
The query sparse values.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofjava.lang.String getNamespace()
The namespace to query.
string namespace = 1;com.google.protobuf.ByteString getNamespaceBytes()
The namespace to query.
string namespace = 1;int getTopK()
The number of results to return for each query.
uint32 top_k = 2 [(.google.api.field_behavior) = REQUIRED];boolean hasFilter()
The filter to apply. You can use vector metadata to limit your search. See https://www.pinecone.io/docs/metadata-filtering/.
.google.protobuf.Struct filter = 3;com.google.protobuf.Struct getFilter()
The filter to apply. You can use vector metadata to limit your search. See https://www.pinecone.io/docs/metadata-filtering/.
.google.protobuf.Struct filter = 3;com.google.protobuf.StructOrBuilder getFilterOrBuilder()
The filter to apply. You can use vector metadata to limit your search. See https://www.pinecone.io/docs/metadata-filtering/.
.google.protobuf.Struct filter = 3;boolean getIncludeValues()
Indicates whether vector values are included in the response.
bool include_values = 4;boolean getIncludeMetadata()
Indicates whether metadata is included in the response as well as the ids.
bool include_metadata = 5;@Deprecated java.util.List<QueryVector> getQueriesList()
DEPRECATED. The query vectors. Each `query()` request can contain only one of the parameters `queries`, `vector`, or `id`.
repeated .QueryVector queries = 6 [deprecated = true];@Deprecated QueryVector getQueries(int index)
DEPRECATED. The query vectors. Each `query()` request can contain only one of the parameters `queries`, `vector`, or `id`.
repeated .QueryVector queries = 6 [deprecated = true];@Deprecated int getQueriesCount()
DEPRECATED. The query vectors. Each `query()` request can contain only one of the parameters `queries`, `vector`, or `id`.
repeated .QueryVector queries = 6 [deprecated = true];@Deprecated java.util.List<? extends QueryVectorOrBuilder> getQueriesOrBuilderList()
DEPRECATED. The query vectors. Each `query()` request can contain only one of the parameters `queries`, `vector`, or `id`.
repeated .QueryVector queries = 6 [deprecated = true];@Deprecated QueryVectorOrBuilder getQueriesOrBuilder(int index)
DEPRECATED. The query vectors. Each `query()` request can contain only one of the parameters `queries`, `vector`, or `id`.
repeated .QueryVector queries = 6 [deprecated = true];java.util.List<java.lang.Float> getVectorList()
The query vector. This should be the same length as the dimension of the index being queried. Each `query()` request can contain only one of the parameters `id` or `vector`.
repeated float vector = 7;int getVectorCount()
The query vector. This should be the same length as the dimension of the index being queried. Each `query()` request can contain only one of the parameters `id` or `vector`.
repeated float vector = 7;float getVector(int index)
The query vector. This should be the same length as the dimension of the index being queried. Each `query()` request can contain only one of the parameters `id` or `vector`.
repeated float vector = 7;index - The index of the element to return.boolean hasSparseVector()
The query sparse values.
.SparseValues sparse_vector = 9;SparseValues getSparseVector()
The query sparse values.
.SparseValues sparse_vector = 9;SparseValuesOrBuilder getSparseVectorOrBuilder()
The query sparse values.
.SparseValues sparse_vector = 9;java.lang.String getId()
The unique ID of the vector to be used as a query vector. Each `query()` request can contain only one of the parameters `queries`, `vector`, or `id`.
string id = 8;com.google.protobuf.ByteString getIdBytes()
The unique ID of the vector to be used as a query vector. Each `query()` request can contain only one of the parameters `queries`, `vector`, or `id`.
string id = 8;