Class ShowPartitionsResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ShowPartitionsResponse.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<ShowPartitionsResponse.Builder>
io.milvus.grpc.ShowPartitionsResponse.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ShowPartitionsResponseOrBuilder, Cloneable
Enclosing class:
ShowPartitionsResponse

public static final class ShowPartitionsResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ShowPartitionsResponse.Builder> implements ShowPartitionsResponseOrBuilder

 List all partitions for particular collection response.
 The returned datas are all rows, we can format to columns by therir index.
 
Protobuf type milvus.proto.milvus.ShowPartitionsResponse
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ShowPartitionsResponse.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<ShowPartitionsResponse.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ShowPartitionsResponse.Builder>
    • getDefaultInstanceForType

      public ShowPartitionsResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ShowPartitionsResponse build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ShowPartitionsResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ShowPartitionsResponse.Builder>
    • setField

      public ShowPartitionsResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ShowPartitionsResponse.Builder>
    • clearField

      public ShowPartitionsResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ShowPartitionsResponse.Builder>
    • clearOneof

      public ShowPartitionsResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ShowPartitionsResponse.Builder>
    • setRepeatedField

      public ShowPartitionsResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ShowPartitionsResponse.Builder>
    • addRepeatedField

      public ShowPartitionsResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ShowPartitionsResponse.Builder>
    • mergeFrom

      public ShowPartitionsResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ShowPartitionsResponse.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ShowPartitionsResponse.Builder>
    • mergeFrom

      public ShowPartitionsResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ShowPartitionsResponse.Builder>
      Throws:
      IOException
    • hasStatus

      public boolean hasStatus()
       Contain error_code and reason
       
      .milvus.proto.common.Status status = 1;
      Specified by:
      hasStatus in interface ShowPartitionsResponseOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public Status getStatus()
       Contain error_code and reason
       
      .milvus.proto.common.Status status = 1;
      Specified by:
      getStatus in interface ShowPartitionsResponseOrBuilder
      Returns:
      The status.
    • setStatus

      public ShowPartitionsResponse.Builder setStatus(Status value)
       Contain error_code and reason
       
      .milvus.proto.common.Status status = 1;
    • setStatus

      public ShowPartitionsResponse.Builder setStatus(Status.Builder builderForValue)
       Contain error_code and reason
       
      .milvus.proto.common.Status status = 1;
    • mergeStatus

      public ShowPartitionsResponse.Builder mergeStatus(Status value)
       Contain error_code and reason
       
      .milvus.proto.common.Status status = 1;
    • clearStatus

      public ShowPartitionsResponse.Builder clearStatus()
       Contain error_code and reason
       
      .milvus.proto.common.Status status = 1;
    • getStatusBuilder

      public Status.Builder getStatusBuilder()
       Contain error_code and reason
       
      .milvus.proto.common.Status status = 1;
    • getStatusOrBuilder

      public StatusOrBuilder getStatusOrBuilder()
       Contain error_code and reason
       
      .milvus.proto.common.Status status = 1;
      Specified by:
      getStatusOrBuilder in interface ShowPartitionsResponseOrBuilder
    • getPartitionNamesList

      public com.google.protobuf.ProtocolStringList getPartitionNamesList()
       All partition names for this collection
       
      repeated string partition_names = 2;
      Specified by:
      getPartitionNamesList in interface ShowPartitionsResponseOrBuilder
      Returns:
      A list containing the partitionNames.
    • getPartitionNamesCount

      public int getPartitionNamesCount()
       All partition names for this collection
       
      repeated string partition_names = 2;
      Specified by:
      getPartitionNamesCount in interface ShowPartitionsResponseOrBuilder
      Returns:
      The count of partitionNames.
    • getPartitionNames

      public String getPartitionNames(int index)
       All partition names for this collection
       
      repeated string partition_names = 2;
      Specified by:
      getPartitionNames in interface ShowPartitionsResponseOrBuilder
      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)
       All partition names for this collection
       
      repeated string partition_names = 2;
      Specified by:
      getPartitionNamesBytes in interface ShowPartitionsResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the partitionNames at the given index.
    • setPartitionNames

      public ShowPartitionsResponse.Builder setPartitionNames(int index, String value)
       All partition names for this collection
       
      repeated string partition_names = 2;
      Parameters:
      index - The index to set the value at.
      value - The partitionNames to set.
      Returns:
      This builder for chaining.
    • addPartitionNames

      public ShowPartitionsResponse.Builder addPartitionNames(String value)
       All partition names for this collection
       
      repeated string partition_names = 2;
      Parameters:
      value - The partitionNames to add.
      Returns:
      This builder for chaining.
    • addAllPartitionNames

      public ShowPartitionsResponse.Builder addAllPartitionNames(Iterable<String> values)
       All partition names for this collection
       
      repeated string partition_names = 2;
      Parameters:
      values - The partitionNames to add.
      Returns:
      This builder for chaining.
    • clearPartitionNames

      public ShowPartitionsResponse.Builder clearPartitionNames()
       All partition names for this collection
       
      repeated string partition_names = 2;
      Returns:
      This builder for chaining.
    • addPartitionNamesBytes

      public ShowPartitionsResponse.Builder addPartitionNamesBytes(com.google.protobuf.ByteString value)
       All partition names for this collection
       
      repeated string partition_names = 2;
      Parameters:
      value - The bytes of the partitionNames to add.
      Returns:
      This builder for chaining.
    • getPartitionIDsList

      public List<Long> getPartitionIDsList()
       All partition ids for this collection
       
      repeated int64 partitionIDs = 3;
      Specified by:
      getPartitionIDsList in interface ShowPartitionsResponseOrBuilder
      Returns:
      A list containing the partitionIDs.
    • getPartitionIDsCount

      public int getPartitionIDsCount()
       All partition ids for this collection
       
      repeated int64 partitionIDs = 3;
      Specified by:
      getPartitionIDsCount in interface ShowPartitionsResponseOrBuilder
      Returns:
      The count of partitionIDs.
    • getPartitionIDs

      public long getPartitionIDs(int index)
       All partition ids for this collection
       
      repeated int64 partitionIDs = 3;
      Specified by:
      getPartitionIDs in interface ShowPartitionsResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The partitionIDs at the given index.
    • setPartitionIDs

      public ShowPartitionsResponse.Builder setPartitionIDs(int index, long value)
       All partition ids for this collection
       
      repeated int64 partitionIDs = 3;
      Parameters:
      index - The index to set the value at.
      value - The partitionIDs to set.
      Returns:
      This builder for chaining.
    • addPartitionIDs

      public ShowPartitionsResponse.Builder addPartitionIDs(long value)
       All partition ids for this collection
       
      repeated int64 partitionIDs = 3;
      Parameters:
      value - The partitionIDs to add.
      Returns:
      This builder for chaining.
    • addAllPartitionIDs

      public ShowPartitionsResponse.Builder addAllPartitionIDs(Iterable<? extends Long> values)
       All partition ids for this collection
       
      repeated int64 partitionIDs = 3;
      Parameters:
      values - The partitionIDs to add.
      Returns:
      This builder for chaining.
    • clearPartitionIDs

      public ShowPartitionsResponse.Builder clearPartitionIDs()
       All partition ids for this collection
       
      repeated int64 partitionIDs = 3;
      Returns:
      This builder for chaining.
    • getCreatedTimestampsList

      public List<Long> getCreatedTimestampsList()
       All hybrid timestamps
       
      repeated uint64 created_timestamps = 4;
      Specified by:
      getCreatedTimestampsList in interface ShowPartitionsResponseOrBuilder
      Returns:
      A list containing the createdTimestamps.
    • getCreatedTimestampsCount

      public int getCreatedTimestampsCount()
       All hybrid timestamps
       
      repeated uint64 created_timestamps = 4;
      Specified by:
      getCreatedTimestampsCount in interface ShowPartitionsResponseOrBuilder
      Returns:
      The count of createdTimestamps.
    • getCreatedTimestamps

      public long getCreatedTimestamps(int index)
       All hybrid timestamps
       
      repeated uint64 created_timestamps = 4;
      Specified by:
      getCreatedTimestamps in interface ShowPartitionsResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The createdTimestamps at the given index.
    • setCreatedTimestamps

      public ShowPartitionsResponse.Builder setCreatedTimestamps(int index, long value)
       All hybrid timestamps
       
      repeated uint64 created_timestamps = 4;
      Parameters:
      index - The index to set the value at.
      value - The createdTimestamps to set.
      Returns:
      This builder for chaining.
    • addCreatedTimestamps

      public ShowPartitionsResponse.Builder addCreatedTimestamps(long value)
       All hybrid timestamps
       
      repeated uint64 created_timestamps = 4;
      Parameters:
      value - The createdTimestamps to add.
      Returns:
      This builder for chaining.
    • addAllCreatedTimestamps

      public ShowPartitionsResponse.Builder addAllCreatedTimestamps(Iterable<? extends Long> values)
       All hybrid timestamps
       
      repeated uint64 created_timestamps = 4;
      Parameters:
      values - The createdTimestamps to add.
      Returns:
      This builder for chaining.
    • clearCreatedTimestamps

      public ShowPartitionsResponse.Builder clearCreatedTimestamps()
       All hybrid timestamps
       
      repeated uint64 created_timestamps = 4;
      Returns:
      This builder for chaining.
    • getCreatedUtcTimestampsList

      public List<Long> getCreatedUtcTimestampsList()
       All utc timestamps calculated by created_timestamps
       
      repeated uint64 created_utc_timestamps = 5;
      Specified by:
      getCreatedUtcTimestampsList in interface ShowPartitionsResponseOrBuilder
      Returns:
      A list containing the createdUtcTimestamps.
    • getCreatedUtcTimestampsCount

      public int getCreatedUtcTimestampsCount()
       All utc timestamps calculated by created_timestamps
       
      repeated uint64 created_utc_timestamps = 5;
      Specified by:
      getCreatedUtcTimestampsCount in interface ShowPartitionsResponseOrBuilder
      Returns:
      The count of createdUtcTimestamps.
    • getCreatedUtcTimestamps

      public long getCreatedUtcTimestamps(int index)
       All utc timestamps calculated by created_timestamps
       
      repeated uint64 created_utc_timestamps = 5;
      Specified by:
      getCreatedUtcTimestamps in interface ShowPartitionsResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The createdUtcTimestamps at the given index.
    • setCreatedUtcTimestamps

      public ShowPartitionsResponse.Builder setCreatedUtcTimestamps(int index, long value)
       All utc timestamps calculated by created_timestamps
       
      repeated uint64 created_utc_timestamps = 5;
      Parameters:
      index - The index to set the value at.
      value - The createdUtcTimestamps to set.
      Returns:
      This builder for chaining.
    • addCreatedUtcTimestamps

      public ShowPartitionsResponse.Builder addCreatedUtcTimestamps(long value)
       All utc timestamps calculated by created_timestamps
       
      repeated uint64 created_utc_timestamps = 5;
      Parameters:
      value - The createdUtcTimestamps to add.
      Returns:
      This builder for chaining.
    • addAllCreatedUtcTimestamps

      public ShowPartitionsResponse.Builder addAllCreatedUtcTimestamps(Iterable<? extends Long> values)
       All utc timestamps calculated by created_timestamps
       
      repeated uint64 created_utc_timestamps = 5;
      Parameters:
      values - The createdUtcTimestamps to add.
      Returns:
      This builder for chaining.
    • clearCreatedUtcTimestamps

      public ShowPartitionsResponse.Builder clearCreatedUtcTimestamps()
       All utc timestamps calculated by created_timestamps
       
      repeated uint64 created_utc_timestamps = 5;
      Returns:
      This builder for chaining.
    • getInMemoryPercentagesList

      @Deprecated public List<Long> getInMemoryPercentagesList()
      Deprecated.
      milvus.proto.milvus.ShowPartitionsResponse.inMemory_percentages is deprecated. See milvus.proto;l=662
       Load percentage on querynode
       Deprecated: use GetLoadingProgress rpc instead
       
      repeated int64 inMemory_percentages = 6 [deprecated = true];
      Specified by:
      getInMemoryPercentagesList in interface ShowPartitionsResponseOrBuilder
      Returns:
      A list containing the inMemoryPercentages.
    • getInMemoryPercentagesCount

      @Deprecated public int getInMemoryPercentagesCount()
      Deprecated.
      milvus.proto.milvus.ShowPartitionsResponse.inMemory_percentages is deprecated. See milvus.proto;l=662
       Load percentage on querynode
       Deprecated: use GetLoadingProgress rpc instead
       
      repeated int64 inMemory_percentages = 6 [deprecated = true];
      Specified by:
      getInMemoryPercentagesCount in interface ShowPartitionsResponseOrBuilder
      Returns:
      The count of inMemoryPercentages.
    • getInMemoryPercentages

      @Deprecated public long getInMemoryPercentages(int index)
      Deprecated.
      milvus.proto.milvus.ShowPartitionsResponse.inMemory_percentages is deprecated. See milvus.proto;l=662
       Load percentage on querynode
       Deprecated: use GetLoadingProgress rpc instead
       
      repeated int64 inMemory_percentages = 6 [deprecated = true];
      Specified by:
      getInMemoryPercentages in interface ShowPartitionsResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The inMemoryPercentages at the given index.
    • setInMemoryPercentages

      @Deprecated public ShowPartitionsResponse.Builder setInMemoryPercentages(int index, long value)
      Deprecated.
      milvus.proto.milvus.ShowPartitionsResponse.inMemory_percentages is deprecated. See milvus.proto;l=662
       Load percentage on querynode
       Deprecated: use GetLoadingProgress rpc instead
       
      repeated int64 inMemory_percentages = 6 [deprecated = true];
      Parameters:
      index - The index to set the value at.
      value - The inMemoryPercentages to set.
      Returns:
      This builder for chaining.
    • addInMemoryPercentages

      @Deprecated public ShowPartitionsResponse.Builder addInMemoryPercentages(long value)
      Deprecated.
      milvus.proto.milvus.ShowPartitionsResponse.inMemory_percentages is deprecated. See milvus.proto;l=662
       Load percentage on querynode
       Deprecated: use GetLoadingProgress rpc instead
       
      repeated int64 inMemory_percentages = 6 [deprecated = true];
      Parameters:
      value - The inMemoryPercentages to add.
      Returns:
      This builder for chaining.
    • addAllInMemoryPercentages

      @Deprecated public ShowPartitionsResponse.Builder addAllInMemoryPercentages(Iterable<? extends Long> values)
      Deprecated.
      milvus.proto.milvus.ShowPartitionsResponse.inMemory_percentages is deprecated. See milvus.proto;l=662
       Load percentage on querynode
       Deprecated: use GetLoadingProgress rpc instead
       
      repeated int64 inMemory_percentages = 6 [deprecated = true];
      Parameters:
      values - The inMemoryPercentages to add.
      Returns:
      This builder for chaining.
    • clearInMemoryPercentages

      @Deprecated public ShowPartitionsResponse.Builder clearInMemoryPercentages()
      Deprecated.
      milvus.proto.milvus.ShowPartitionsResponse.inMemory_percentages is deprecated. See milvus.proto;l=662
       Load percentage on querynode
       Deprecated: use GetLoadingProgress rpc instead
       
      repeated int64 inMemory_percentages = 6 [deprecated = true];
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final ShowPartitionsResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ShowPartitionsResponse.Builder>
    • mergeUnknownFields

      public final ShowPartitionsResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ShowPartitionsResponse.Builder>