public final class QueryRequest extends com.google.protobuf.GeneratedMessageV3 implements QueryRequestOrBuilder
The request for the `Query` operation.Protobuf type
QueryRequest| Modifier and Type | Class and Description |
|---|---|
static class |
QueryRequest.Builder
The request for the `Query` operation.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
FILTER_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
INCLUDE_METADATA_FIELD_NUMBER |
static int |
INCLUDE_VALUES_FIELD_NUMBER |
static int |
NAMESPACE_FIELD_NUMBER |
static int |
QUERIES_FIELD_NUMBER |
static int |
SPARSE_VECTOR_FIELD_NUMBER |
static int |
TOP_K_FIELD_NUMBER |
static int |
VECTOR_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static QueryRequest |
getDefaultInstance() |
QueryRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Struct |
getFilter()
The filter to apply if no filter is specified in `QueryVector.
|
com.google.protobuf.StructOrBuilder |
getFilterOrBuilder()
The filter to apply if no filter is specified in `QueryVector.
|
java.lang.String |
getId()
The id of the vector
|
com.google.protobuf.ByteString |
getIdBytes()
The id of the 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.
|
com.google.protobuf.Parser<QueryRequest> |
getParserForType() |
QueryVector |
getQueries(int index)
The query vectors.
|
int |
getQueriesCount()
The query vectors.
|
java.util.List<QueryVector> |
getQueriesList()
The query vectors.
|
QueryVectorOrBuilder |
getQueriesOrBuilder(int index)
The query vectors.
|
java.util.List<? extends QueryVectorOrBuilder> |
getQueriesOrBuilderList()
The query vectors.
|
int |
getSerializedSize() |
SparseValues |
getSparseVector()
The query sparse values.
|
SparseValuesOrBuilder |
getSparseVectorOrBuilder()
The query sparse values.
|
int |
getTopK()
The number of results to return for each query.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
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 if no filter is specified in `QueryVector.
|
int |
hashCode() |
boolean |
hasSparseVector()
The query sparse values.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static QueryRequest.Builder |
newBuilder() |
static QueryRequest.Builder |
newBuilder(QueryRequest prototype) |
QueryRequest.Builder |
newBuilderForType() |
protected QueryRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static QueryRequest |
parseDelimitedFrom(java.io.InputStream input) |
static QueryRequest |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QueryRequest |
parseFrom(byte[] data) |
static QueryRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QueryRequest |
parseFrom(java.nio.ByteBuffer data) |
static QueryRequest |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QueryRequest |
parseFrom(com.google.protobuf.ByteString data) |
static QueryRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QueryRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static QueryRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QueryRequest |
parseFrom(java.io.InputStream input) |
static QueryRequest |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<QueryRequest> |
parser() |
QueryRequest.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAMESPACE_FIELD_NUMBER
public static final int TOP_K_FIELD_NUMBER
public static final int FILTER_FIELD_NUMBER
public static final int INCLUDE_VALUES_FIELD_NUMBER
public static final int INCLUDE_METADATA_FIELD_NUMBER
public static final int QUERIES_FIELD_NUMBER
public static final int VECTOR_FIELD_NUMBER
public static final int SPARSE_VECTOR_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public java.lang.String getNamespace()
The namespace to query.
string namespace = 1;getNamespace in interface QueryRequestOrBuilderpublic com.google.protobuf.ByteString getNamespaceBytes()
The namespace to query.
string namespace = 1;getNamespaceBytes in interface QueryRequestOrBuilderpublic int getTopK()
The number of results to return for each query.
uint32 top_k = 2;getTopK in interface QueryRequestOrBuilderpublic boolean hasFilter()
The filter to apply if no filter is specified in `QueryVector. You can use vector metadata to limit your search. See https://www.pinecone.io/docs/metadata-filtering/`
.google.protobuf.Struct filter = 3;hasFilter in interface QueryRequestOrBuilderpublic com.google.protobuf.Struct getFilter()
The filter to apply if no filter is specified in `QueryVector. You can use vector metadata to limit your search. See https://www.pinecone.io/docs/metadata-filtering/`
.google.protobuf.Struct filter = 3;getFilter in interface QueryRequestOrBuilderpublic com.google.protobuf.StructOrBuilder getFilterOrBuilder()
The filter to apply if no filter is specified in `QueryVector. You can use vector metadata to limit your search. See https://www.pinecone.io/docs/metadata-filtering/`
.google.protobuf.Struct filter = 3;getFilterOrBuilder in interface QueryRequestOrBuilderpublic boolean getIncludeValues()
Indicates whether vector values are included in the response.
bool include_values = 4;getIncludeValues in interface QueryRequestOrBuilderpublic boolean getIncludeMetadata()
Indicates whether metadata is included in the response as well as the ids.
bool include_metadata = 5;getIncludeMetadata in interface QueryRequestOrBuilderpublic java.util.List<QueryVector> getQueriesList()
The query vectors.
repeated .QueryVector queries = 6;getQueriesList in interface QueryRequestOrBuilderpublic java.util.List<? extends QueryVectorOrBuilder> getQueriesOrBuilderList()
The query vectors.
repeated .QueryVector queries = 6;getQueriesOrBuilderList in interface QueryRequestOrBuilderpublic int getQueriesCount()
The query vectors.
repeated .QueryVector queries = 6;getQueriesCount in interface QueryRequestOrBuilderpublic QueryVector getQueries(int index)
The query vectors.
repeated .QueryVector queries = 6;getQueries in interface QueryRequestOrBuilderpublic QueryVectorOrBuilder getQueriesOrBuilder(int index)
The query vectors.
repeated .QueryVector queries = 6;getQueriesOrBuilder in interface QueryRequestOrBuilderpublic java.util.List<java.lang.Float> getVectorList()
The query vector. This should be the same length as the dimension of the index being queried.
repeated float vector = 7;getVectorList in interface QueryRequestOrBuilderpublic int getVectorCount()
The query vector. This should be the same length as the dimension of the index being queried.
repeated float vector = 7;getVectorCount in interface QueryRequestOrBuilderpublic float getVector(int index)
The query vector. This should be the same length as the dimension of the index being queried.
repeated float vector = 7;getVector in interface QueryRequestOrBuilderindex - The index of the element to return.public boolean hasSparseVector()
The query sparse values.
.SparseValues sparse_vector = 9;hasSparseVector in interface QueryRequestOrBuilderpublic SparseValues getSparseVector()
The query sparse values.
.SparseValues sparse_vector = 9;getSparseVector in interface QueryRequestOrBuilderpublic SparseValuesOrBuilder getSparseVectorOrBuilder()
The query sparse values.
.SparseValues sparse_vector = 9;getSparseVectorOrBuilder in interface QueryRequestOrBuilderpublic java.lang.String getId()
The id of the vector
string id = 8;getId in interface QueryRequestOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
The id of the vector
string id = 8;getIdBytes in interface QueryRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static QueryRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QueryRequest parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QueryRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QueryRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QueryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QueryRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QueryRequest parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static QueryRequest parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static QueryRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static QueryRequest parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static QueryRequest parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static QueryRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic QueryRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static QueryRequest.Builder newBuilder()
public static QueryRequest.Builder newBuilder(QueryRequest prototype)
public QueryRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected QueryRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static QueryRequest getDefaultInstance()
public static com.google.protobuf.Parser<QueryRequest> parser()
public com.google.protobuf.Parser<QueryRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public QueryRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder