public final class QueryResponse extends com.google.protobuf.GeneratedMessageV3 implements QueryResponseOrBuilder
The response for the `Query` operation. These are the matches found for a particular query vector. The matches are ordered from most similar to least similar.Protobuf type
QueryResponse| Modifier and Type | Class and Description |
|---|---|
static class |
QueryResponse.Builder
The response for the `Query` operation.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
MATCHES_FIELD_NUMBER |
static int |
NAMESPACE_FIELD_NUMBER |
static int |
RESULTS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static QueryResponse |
getDefaultInstance() |
QueryResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
ScoredVector |
getMatches(int index)
The matches for the vectors.
|
int |
getMatchesCount()
The matches for the vectors.
|
java.util.List<ScoredVector> |
getMatchesList()
The matches for the vectors.
|
ScoredVectorOrBuilder |
getMatchesOrBuilder(int index)
The matches for the vectors.
|
java.util.List<? extends ScoredVectorOrBuilder> |
getMatchesOrBuilderList()
The matches for the vectors.
|
java.lang.String |
getNamespace()
The namespace for the vectors.
|
com.google.protobuf.ByteString |
getNamespaceBytes()
The namespace for the vectors.
|
com.google.protobuf.Parser<QueryResponse> |
getParserForType() |
SingleQueryResults |
getResults(int index)
The results of each query.
|
int |
getResultsCount()
The results of each query.
|
java.util.List<SingleQueryResults> |
getResultsList()
The results of each query.
|
SingleQueryResultsOrBuilder |
getResultsOrBuilder(int index)
The results of each query.
|
java.util.List<? extends SingleQueryResultsOrBuilder> |
getResultsOrBuilderList()
The results of each query.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static QueryResponse.Builder |
newBuilder() |
static QueryResponse.Builder |
newBuilder(QueryResponse prototype) |
QueryResponse.Builder |
newBuilderForType() |
protected QueryResponse.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static QueryResponse |
parseDelimitedFrom(java.io.InputStream input) |
static QueryResponse |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QueryResponse |
parseFrom(byte[] data) |
static QueryResponse |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QueryResponse |
parseFrom(java.nio.ByteBuffer data) |
static QueryResponse |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QueryResponse |
parseFrom(com.google.protobuf.ByteString data) |
static QueryResponse |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QueryResponse |
parseFrom(com.google.protobuf.CodedInputStream input) |
static QueryResponse |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QueryResponse |
parseFrom(java.io.InputStream input) |
static QueryResponse |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<QueryResponse> |
parser() |
QueryResponse.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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 RESULTS_FIELD_NUMBER
public static final int MATCHES_FIELD_NUMBER
public static final int NAMESPACE_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.util.List<SingleQueryResults> getResultsList()
The results of each query. The order is the same as `QueryRequest.queries`.
repeated .SingleQueryResults results = 1;getResultsList in interface QueryResponseOrBuilderpublic java.util.List<? extends SingleQueryResultsOrBuilder> getResultsOrBuilderList()
The results of each query. The order is the same as `QueryRequest.queries`.
repeated .SingleQueryResults results = 1;getResultsOrBuilderList in interface QueryResponseOrBuilderpublic int getResultsCount()
The results of each query. The order is the same as `QueryRequest.queries`.
repeated .SingleQueryResults results = 1;getResultsCount in interface QueryResponseOrBuilderpublic SingleQueryResults getResults(int index)
The results of each query. The order is the same as `QueryRequest.queries`.
repeated .SingleQueryResults results = 1;getResults in interface QueryResponseOrBuilderpublic SingleQueryResultsOrBuilder getResultsOrBuilder(int index)
The results of each query. The order is the same as `QueryRequest.queries`.
repeated .SingleQueryResults results = 1;getResultsOrBuilder in interface QueryResponseOrBuilderpublic java.util.List<ScoredVector> getMatchesList()
The matches for the vectors.
repeated .ScoredVector matches = 2;getMatchesList in interface QueryResponseOrBuilderpublic java.util.List<? extends ScoredVectorOrBuilder> getMatchesOrBuilderList()
The matches for the vectors.
repeated .ScoredVector matches = 2;getMatchesOrBuilderList in interface QueryResponseOrBuilderpublic int getMatchesCount()
The matches for the vectors.
repeated .ScoredVector matches = 2;getMatchesCount in interface QueryResponseOrBuilderpublic ScoredVector getMatches(int index)
The matches for the vectors.
repeated .ScoredVector matches = 2;getMatches in interface QueryResponseOrBuilderpublic ScoredVectorOrBuilder getMatchesOrBuilder(int index)
The matches for the vectors.
repeated .ScoredVector matches = 2;getMatchesOrBuilder in interface QueryResponseOrBuilderpublic java.lang.String getNamespace()
The namespace for the vectors.
string namespace = 3;getNamespace in interface QueryResponseOrBuilderpublic com.google.protobuf.ByteString getNamespaceBytes()
The namespace for the vectors.
string namespace = 3;getNamespaceBytes in interface QueryResponseOrBuilderpublic 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 QueryResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QueryResponse parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QueryResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QueryResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QueryResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QueryResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QueryResponse parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static QueryResponse parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static QueryResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static QueryResponse parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static QueryResponse parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static QueryResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic QueryResponse.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static QueryResponse.Builder newBuilder()
public static QueryResponse.Builder newBuilder(QueryResponse prototype)
public QueryResponse.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected QueryResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static QueryResponse getDefaultInstance()
public static com.google.protobuf.Parser<QueryResponse> parser()
public com.google.protobuf.Parser<QueryResponse> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public QueryResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder