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 type milvus.proto.milvus.QueryRequest
See Also:
  • Field Details

    • BASE_FIELD_NUMBER

      public static final int BASE_FIELD_NUMBER
      See Also:
    • DB_NAME_FIELD_NUMBER

      public static final int DB_NAME_FIELD_NUMBER
      See Also:
    • COLLECTION_NAME_FIELD_NUMBER

      public static final int COLLECTION_NAME_FIELD_NUMBER
      See Also:
    • EXPR_FIELD_NUMBER

      public static final int EXPR_FIELD_NUMBER
      See Also:
    • OUTPUT_FIELDS_FIELD_NUMBER

      public static final int OUTPUT_FIELDS_FIELD_NUMBER
      See Also:
    • PARTITION_NAMES_FIELD_NUMBER

      public static final int PARTITION_NAMES_FIELD_NUMBER
      See Also:
    • TRAVEL_TIMESTAMP_FIELD_NUMBER

      public static final int TRAVEL_TIMESTAMP_FIELD_NUMBER
      See Also:
    • GUARANTEE_TIMESTAMP_FIELD_NUMBER

      public static final int GUARANTEE_TIMESTAMP_FIELD_NUMBER
      See Also:
    • QUERY_PARAMS_FIELD_NUMBER

      public static final int QUERY_PARAMS_FIELD_NUMBER
      See Also:
    • NOT_RETURN_ALL_META_FIELD_NUMBER

      public static final int NOT_RETURN_ALL_META_FIELD_NUMBER
      See Also:
    • CONSISTENCY_LEVEL_FIELD_NUMBER

      public static final int CONSISTENCY_LEVEL_FIELD_NUMBER
      See Also:
    • USE_DEFAULT_CONSISTENCY_FIELD_NUMBER

      public static final int USE_DEFAULT_CONSISTENCY_FIELD_NUMBER
      See Also:
    • EXPR_TEMPLATE_VALUES_FIELD_NUMBER

      public static final int EXPR_TEMPLATE_VALUES_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • hasBase

      public boolean hasBase()
      .milvus.proto.common.MsgBase base = 1;
      Specified by:
      hasBase in interface QueryRequestOrBuilder
      Returns:
      Whether the base field is set.
    • getBase

      public MsgBase getBase()
      .milvus.proto.common.MsgBase base = 1;
      Specified by:
      getBase in interface QueryRequestOrBuilder
      Returns:
      The base.
    • getBaseOrBuilder

      public MsgBaseOrBuilder getBaseOrBuilder()
      .milvus.proto.common.MsgBase base = 1;
      Specified by:
      getBaseOrBuilder in interface QueryRequestOrBuilder
    • getDbName

      public String getDbName()
      string db_name = 2;
      Specified by:
      getDbName in interface QueryRequestOrBuilder
      Returns:
      The dbName.
    • getDbNameBytes

      public com.google.protobuf.ByteString getDbNameBytes()
      string db_name = 2;
      Specified by:
      getDbNameBytes in interface QueryRequestOrBuilder
      Returns:
      The bytes for dbName.
    • getCollectionName

      public String getCollectionName()
      string collection_name = 3;
      Specified by:
      getCollectionName in interface QueryRequestOrBuilder
      Returns:
      The collectionName.
    • getCollectionNameBytes

      public com.google.protobuf.ByteString getCollectionNameBytes()
      string collection_name = 3;
      Specified by:
      getCollectionNameBytes in interface QueryRequestOrBuilder
      Returns:
      The bytes for collectionName.
    • getExpr

      public String getExpr()
      string expr = 4;
      Specified by:
      getExpr in interface QueryRequestOrBuilder
      Returns:
      The expr.
    • getExprBytes

      public com.google.protobuf.ByteString getExprBytes()
      string expr = 4;
      Specified by:
      getExprBytes in interface QueryRequestOrBuilder
      Returns:
      The bytes for expr.
    • getOutputFieldsList

      public com.google.protobuf.ProtocolStringList getOutputFieldsList()
      repeated string output_fields = 5;
      Specified by:
      getOutputFieldsList in interface QueryRequestOrBuilder
      Returns:
      A list containing the outputFields.
    • getOutputFieldsCount

      public int getOutputFieldsCount()
      repeated string output_fields = 5;
      Specified by:
      getOutputFieldsCount in interface QueryRequestOrBuilder
      Returns:
      The count of outputFields.
    • getOutputFields

      public String getOutputFields(int index)
      repeated string output_fields = 5;
      Specified by:
      getOutputFields in interface QueryRequestOrBuilder
      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:
      getOutputFieldsBytes in interface QueryRequestOrBuilder
      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:
      getPartitionNamesList in interface QueryRequestOrBuilder
      Returns:
      A list containing the partitionNames.
    • getPartitionNamesCount

      public int getPartitionNamesCount()
      repeated string partition_names = 6;
      Specified by:
      getPartitionNamesCount in interface QueryRequestOrBuilder
      Returns:
      The count of partitionNames.
    • getPartitionNames

      public String getPartitionNames(int index)
      repeated string partition_names = 6;
      Specified by:
      getPartitionNames in interface QueryRequestOrBuilder
      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:
      getPartitionNamesBytes in interface QueryRequestOrBuilder
      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:
      getTravelTimestamp in interface QueryRequestOrBuilder
      Returns:
      The travelTimestamp.
    • getGuaranteeTimestamp

      public long getGuaranteeTimestamp()
       guarantee_timestamp
       
      uint64 guarantee_timestamp = 8;
      Specified by:
      getGuaranteeTimestamp in interface QueryRequestOrBuilder
      Returns:
      The guaranteeTimestamp.
    • getQueryParamsList

      public List<KeyValuePair> getQueryParamsList()
       optional
       
      repeated .milvus.proto.common.KeyValuePair query_params = 9;
      Specified by:
      getQueryParamsList in interface QueryRequestOrBuilder
    • getQueryParamsOrBuilderList

      public List<? extends KeyValuePairOrBuilder> getQueryParamsOrBuilderList()
       optional
       
      repeated .milvus.proto.common.KeyValuePair query_params = 9;
      Specified by:
      getQueryParamsOrBuilderList in interface QueryRequestOrBuilder
    • getQueryParamsCount

      public int getQueryParamsCount()
       optional
       
      repeated .milvus.proto.common.KeyValuePair query_params = 9;
      Specified by:
      getQueryParamsCount in interface QueryRequestOrBuilder
    • getQueryParams

      public KeyValuePair getQueryParams(int index)
       optional
       
      repeated .milvus.proto.common.KeyValuePair query_params = 9;
      Specified by:
      getQueryParams in interface QueryRequestOrBuilder
    • getQueryParamsOrBuilder

      public KeyValuePairOrBuilder getQueryParamsOrBuilder(int index)
       optional
       
      repeated .milvus.proto.common.KeyValuePair query_params = 9;
      Specified by:
      getQueryParamsOrBuilder in interface QueryRequestOrBuilder
    • getNotReturnAllMeta

      public boolean getNotReturnAllMeta()
      bool not_return_all_meta = 10;
      Specified by:
      getNotReturnAllMeta in interface QueryRequestOrBuilder
      Returns:
      The notReturnAllMeta.
    • getConsistencyLevelValue

      public int getConsistencyLevelValue()
      .milvus.proto.common.ConsistencyLevel consistency_level = 11;
      Specified by:
      getConsistencyLevelValue in interface QueryRequestOrBuilder
      Returns:
      The enum numeric value on the wire for consistencyLevel.
    • getConsistencyLevel

      public ConsistencyLevel getConsistencyLevel()
      .milvus.proto.common.ConsistencyLevel consistency_level = 11;
      Specified by:
      getConsistencyLevel in interface QueryRequestOrBuilder
      Returns:
      The consistencyLevel.
    • getUseDefaultConsistency

      public boolean getUseDefaultConsistency()
      bool use_default_consistency = 12;
      Specified by:
      getUseDefaultConsistency in interface QueryRequestOrBuilder
      Returns:
      The useDefaultConsistency.
    • getExprTemplateValuesCount

      public int getExprTemplateValuesCount()
      Description copied from interface: QueryRequestOrBuilder
      map<string, .milvus.proto.schema.TemplateValue> expr_template_values = 13;
      Specified by:
      getExprTemplateValuesCount in interface QueryRequestOrBuilder
    • containsExprTemplateValues

      public boolean containsExprTemplateValues(String key)
      map<string, .milvus.proto.schema.TemplateValue> expr_template_values = 13;
      Specified by:
      containsExprTemplateValues in interface QueryRequestOrBuilder
    • getExprTemplateValues

      @Deprecated public Map<String,TemplateValue> getExprTemplateValues()
      Deprecated.
      Specified by:
      getExprTemplateValues in interface QueryRequestOrBuilder
    • getExprTemplateValuesMap

      public Map<String,TemplateValue> getExprTemplateValuesMap()
      map<string, .milvus.proto.schema.TemplateValue> expr_template_values = 13;
      Specified by:
      getExprTemplateValuesMap in interface QueryRequestOrBuilder
    • getExprTemplateValuesOrDefault

      public TemplateValue getExprTemplateValuesOrDefault(String key, TemplateValue defaultValue)
      map<string, .milvus.proto.schema.TemplateValue> expr_template_values = 13;
      Specified by:
      getExprTemplateValuesOrDefault in interface QueryRequestOrBuilder
    • getExprTemplateValuesOrThrow

      public TemplateValue getExprTemplateValuesOrThrow(String key)
      map<string, .milvus.proto.schema.TemplateValue> expr_template_values = 13;
      Specified by:
      getExprTemplateValuesOrThrow in interface QueryRequestOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static QueryRequest.Builder newBuilder()
    • newBuilder

      public static QueryRequest.Builder newBuilder(QueryRequest prototype)
    • toBuilder

      public QueryRequest.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected QueryRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.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:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public QueryRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder