Package io.milvus.grpc
Class QueryRequest
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.milvus.grpc.QueryRequest
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,QueryRequestOrBuilder,Serializable
public final class QueryRequest extends com.google.protobuf.GeneratedMessageV3 implements QueryRequestOrBuilder
Protobuf typemilvus.proto.milvus.QueryRequest- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQueryRequest.BuilderProtobuf typemilvus.proto.milvus.QueryRequest-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description static intBASE_FIELD_NUMBERstatic intCOLLECTION_NAME_FIELD_NUMBERstatic intCONSISTENCY_LEVEL_FIELD_NUMBERstatic intDB_NAME_FIELD_NUMBERstatic intEXPR_FIELD_NUMBERstatic intGUARANTEE_TIMESTAMP_FIELD_NUMBERstatic intNOT_RETURN_ALL_META_FIELD_NUMBERstatic intOUTPUT_FIELDS_FIELD_NUMBERstatic intPARTITION_NAMES_FIELD_NUMBERstatic intQUERY_PARAMS_FIELD_NUMBERstatic intTRAVEL_TIMESTAMP_FIELD_NUMBERstatic intUSE_DEFAULT_CONSISTENCY_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)MsgBasegetBase().milvus.proto.common.MsgBase base = 1;MsgBaseOrBuildergetBaseOrBuilder().milvus.proto.common.MsgBase base = 1;StringgetCollectionName()string collection_name = 3;com.google.protobuf.ByteStringgetCollectionNameBytes()string collection_name = 3;ConsistencyLevelgetConsistencyLevel().milvus.proto.common.ConsistencyLevel consistency_level = 11;intgetConsistencyLevelValue().milvus.proto.common.ConsistencyLevel consistency_level = 11;StringgetDbName()string db_name = 2;com.google.protobuf.ByteStringgetDbNameBytes()string db_name = 2;static QueryRequestgetDefaultInstance()QueryRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetExpr()string expr = 4;com.google.protobuf.ByteStringgetExprBytes()string expr = 4;longgetGuaranteeTimestamp()guarantee_timestampbooleangetNotReturnAllMeta()bool not_return_all_meta = 10;StringgetOutputFields(int index)repeated string output_fields = 5;com.google.protobuf.ByteStringgetOutputFieldsBytes(int index)repeated string output_fields = 5;intgetOutputFieldsCount()repeated string output_fields = 5;com.google.protobuf.ProtocolStringListgetOutputFieldsList()repeated string output_fields = 5;com.google.protobuf.Parser<QueryRequest>getParserForType()StringgetPartitionNames(int index)repeated string partition_names = 6;com.google.protobuf.ByteStringgetPartitionNamesBytes(int index)repeated string partition_names = 6;intgetPartitionNamesCount()repeated string partition_names = 6;com.google.protobuf.ProtocolStringListgetPartitionNamesList()repeated string partition_names = 6;KeyValuePairgetQueryParams(int index)optionalintgetQueryParamsCount()optionalList<KeyValuePair>getQueryParamsList()optionalKeyValuePairOrBuildergetQueryParamsOrBuilder(int index)optionalList<? extends KeyValuePairOrBuilder>getQueryParamsOrBuilderList()optionalintgetSerializedSize()longgetTravelTimestamp()uint64 travel_timestamp = 7;booleangetUseDefaultConsistency()bool use_default_consistency = 12;booleanhasBase().milvus.proto.common.MsgBase base = 1;inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static QueryRequest.BuildernewBuilder()static QueryRequest.BuildernewBuilder(QueryRequest prototype)QueryRequest.BuildernewBuilderForType()protected QueryRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static QueryRequestparseDelimitedFrom(InputStream input)static QueryRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static QueryRequestparseFrom(byte[] data)static QueryRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static QueryRequestparseFrom(com.google.protobuf.ByteString data)static QueryRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static QueryRequestparseFrom(com.google.protobuf.CodedInputStream input)static QueryRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static QueryRequestparseFrom(InputStream input)static QueryRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static QueryRequestparseFrom(ByteBuffer data)static QueryRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<QueryRequest>parser()QueryRequest.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
BASE_FIELD_NUMBER
public static final int BASE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DB_NAME_FIELD_NUMBER
public static final int DB_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
COLLECTION_NAME_FIELD_NUMBER
public static final int COLLECTION_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXPR_FIELD_NUMBER
public static final int EXPR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OUTPUT_FIELDS_FIELD_NUMBER
public static final int OUTPUT_FIELDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARTITION_NAMES_FIELD_NUMBER
public static final int PARTITION_NAMES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRAVEL_TIMESTAMP_FIELD_NUMBER
public static final int TRAVEL_TIMESTAMP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GUARANTEE_TIMESTAMP_FIELD_NUMBER
public static final int GUARANTEE_TIMESTAMP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
QUERY_PARAMS_FIELD_NUMBER
public static final int QUERY_PARAMS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NOT_RETURN_ALL_META_FIELD_NUMBER
public static final int NOT_RETURN_ALL_META_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONSISTENCY_LEVEL_FIELD_NUMBER
public static final int CONSISTENCY_LEVEL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
USE_DEFAULT_CONSISTENCY_FIELD_NUMBER
public static final int USE_DEFAULT_CONSISTENCY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasBase
public boolean hasBase()
.milvus.proto.common.MsgBase base = 1;- Specified by:
hasBasein interfaceQueryRequestOrBuilder- Returns:
- Whether the base field is set.
-
getBase
public MsgBase getBase()
.milvus.proto.common.MsgBase base = 1;- Specified by:
getBasein interfaceQueryRequestOrBuilder- Returns:
- The base.
-
getBaseOrBuilder
public MsgBaseOrBuilder getBaseOrBuilder()
.milvus.proto.common.MsgBase base = 1;- Specified by:
getBaseOrBuilderin interfaceQueryRequestOrBuilder
-
getDbName
public String getDbName()
string db_name = 2;- Specified by:
getDbNamein interfaceQueryRequestOrBuilder- Returns:
- The dbName.
-
getDbNameBytes
public com.google.protobuf.ByteString getDbNameBytes()
string db_name = 2;- Specified by:
getDbNameBytesin interfaceQueryRequestOrBuilder- Returns:
- The bytes for dbName.
-
getCollectionName
public String getCollectionName()
string collection_name = 3;- Specified by:
getCollectionNamein interfaceQueryRequestOrBuilder- Returns:
- The collectionName.
-
getCollectionNameBytes
public com.google.protobuf.ByteString getCollectionNameBytes()
string collection_name = 3;- Specified by:
getCollectionNameBytesin interfaceQueryRequestOrBuilder- Returns:
- The bytes for collectionName.
-
getExpr
public String getExpr()
string expr = 4;- Specified by:
getExprin interfaceQueryRequestOrBuilder- Returns:
- The expr.
-
getExprBytes
public com.google.protobuf.ByteString getExprBytes()
string expr = 4;- Specified by:
getExprBytesin interfaceQueryRequestOrBuilder- Returns:
- The bytes for expr.
-
getOutputFieldsList
public com.google.protobuf.ProtocolStringList getOutputFieldsList()
repeated string output_fields = 5;- Specified by:
getOutputFieldsListin interfaceQueryRequestOrBuilder- Returns:
- A list containing the outputFields.
-
getOutputFieldsCount
public int getOutputFieldsCount()
repeated string output_fields = 5;- Specified by:
getOutputFieldsCountin interfaceQueryRequestOrBuilder- Returns:
- The count of outputFields.
-
getOutputFields
public String getOutputFields(int index)
repeated string output_fields = 5;- Specified by:
getOutputFieldsin interfaceQueryRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The outputFields at the given index.
-
getOutputFieldsBytes
public com.google.protobuf.ByteString getOutputFieldsBytes(int index)
repeated string output_fields = 5;- Specified by:
getOutputFieldsBytesin interfaceQueryRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the outputFields at the given index.
-
getPartitionNamesList
public com.google.protobuf.ProtocolStringList getPartitionNamesList()
repeated string partition_names = 6;- Specified by:
getPartitionNamesListin interfaceQueryRequestOrBuilder- Returns:
- A list containing the partitionNames.
-
getPartitionNamesCount
public int getPartitionNamesCount()
repeated string partition_names = 6;- Specified by:
getPartitionNamesCountin interfaceQueryRequestOrBuilder- Returns:
- The count of partitionNames.
-
getPartitionNames
public String getPartitionNames(int index)
repeated string partition_names = 6;- Specified by:
getPartitionNamesin interfaceQueryRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The partitionNames at the given index.
-
getPartitionNamesBytes
public com.google.protobuf.ByteString getPartitionNamesBytes(int index)
repeated string partition_names = 6;- Specified by:
getPartitionNamesBytesin interfaceQueryRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the partitionNames at the given index.
-
getTravelTimestamp
public long getTravelTimestamp()
uint64 travel_timestamp = 7;- Specified by:
getTravelTimestampin interfaceQueryRequestOrBuilder- Returns:
- The travelTimestamp.
-
getGuaranteeTimestamp
public long getGuaranteeTimestamp()
guarantee_timestamp
uint64 guarantee_timestamp = 8;- Specified by:
getGuaranteeTimestampin interfaceQueryRequestOrBuilder- Returns:
- The guaranteeTimestamp.
-
getQueryParamsList
public List<KeyValuePair> getQueryParamsList()
optional
repeated .milvus.proto.common.KeyValuePair query_params = 9;- Specified by:
getQueryParamsListin interfaceQueryRequestOrBuilder
-
getQueryParamsOrBuilderList
public List<? extends KeyValuePairOrBuilder> getQueryParamsOrBuilderList()
optional
repeated .milvus.proto.common.KeyValuePair query_params = 9;- Specified by:
getQueryParamsOrBuilderListin interfaceQueryRequestOrBuilder
-
getQueryParamsCount
public int getQueryParamsCount()
optional
repeated .milvus.proto.common.KeyValuePair query_params = 9;- Specified by:
getQueryParamsCountin interfaceQueryRequestOrBuilder
-
getQueryParams
public KeyValuePair getQueryParams(int index)
optional
repeated .milvus.proto.common.KeyValuePair query_params = 9;- Specified by:
getQueryParamsin interfaceQueryRequestOrBuilder
-
getQueryParamsOrBuilder
public KeyValuePairOrBuilder getQueryParamsOrBuilder(int index)
optional
repeated .milvus.proto.common.KeyValuePair query_params = 9;- Specified by:
getQueryParamsOrBuilderin interfaceQueryRequestOrBuilder
-
getNotReturnAllMeta
public boolean getNotReturnAllMeta()
bool not_return_all_meta = 10;- Specified by:
getNotReturnAllMetain interfaceQueryRequestOrBuilder- Returns:
- The notReturnAllMeta.
-
getConsistencyLevelValue
public int getConsistencyLevelValue()
.milvus.proto.common.ConsistencyLevel consistency_level = 11;- Specified by:
getConsistencyLevelValuein interfaceQueryRequestOrBuilder- Returns:
- The enum numeric value on the wire for consistencyLevel.
-
getConsistencyLevel
public ConsistencyLevel getConsistencyLevel()
.milvus.proto.common.ConsistencyLevel consistency_level = 11;- Specified by:
getConsistencyLevelin interfaceQueryRequestOrBuilder- Returns:
- The consistencyLevel.
-
getUseDefaultConsistency
public boolean getUseDefaultConsistency()
bool use_default_consistency = 12;- Specified by:
getUseDefaultConsistencyin interfaceQueryRequestOrBuilder- Returns:
- The useDefaultConsistency.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static QueryRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QueryRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QueryRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QueryRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QueryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QueryRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QueryRequest parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static QueryRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static QueryRequest parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static QueryRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static QueryRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static QueryRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public QueryRequest.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static QueryRequest.Builder newBuilder()
-
newBuilder
public static QueryRequest.Builder newBuilder(QueryRequest prototype)
-
toBuilder
public QueryRequest.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected QueryRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static QueryRequest getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<QueryRequest> parser()
-
getParserForType
public com.google.protobuf.Parser<QueryRequest> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public QueryRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-