Class 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 Detail

      • 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

        public 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

        public ShowPartitionsResponse.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>
      • 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>
      • 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.
      • getStatusBuilder

        public Status.Builder getStatusBuilder()
         Contain error_code and reason
         
        .milvus.proto.common.Status status = 1;
      • 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.
      • 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.
      • 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.
      • 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.
      • 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

        public List<Long> getInMemoryPercentagesList()
         Load percentage on querynode
         Deprecated: use GetLoadingProgress rpc instead
         
        repeated int64 inMemory_percentages = 6;
        Specified by:
        getInMemoryPercentagesList in interface ShowPartitionsResponseOrBuilder
        Returns:
        A list containing the inMemoryPercentages.
      • getInMemoryPercentagesCount

        public int getInMemoryPercentagesCount()
         Load percentage on querynode
         Deprecated: use GetLoadingProgress rpc instead
         
        repeated int64 inMemory_percentages = 6;
        Specified by:
        getInMemoryPercentagesCount in interface ShowPartitionsResponseOrBuilder
        Returns:
        The count of inMemoryPercentages.
      • getInMemoryPercentages

        public long getInMemoryPercentages​(int index)
         Load percentage on querynode
         Deprecated: use GetLoadingProgress rpc instead
         
        repeated int64 inMemory_percentages = 6;
        Specified by:
        getInMemoryPercentages in interface ShowPartitionsResponseOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The inMemoryPercentages at the given index.
      • setInMemoryPercentages

        public ShowPartitionsResponse.Builder setInMemoryPercentages​(int index,
                                                                     long value)
         Load percentage on querynode
         Deprecated: use GetLoadingProgress rpc instead
         
        repeated int64 inMemory_percentages = 6;
        Parameters:
        index - The index to set the value at.
        value - The inMemoryPercentages to set.
        Returns:
        This builder for chaining.
      • addInMemoryPercentages

        public ShowPartitionsResponse.Builder addInMemoryPercentages​(long value)
         Load percentage on querynode
         Deprecated: use GetLoadingProgress rpc instead
         
        repeated int64 inMemory_percentages = 6;
        Parameters:
        value - The inMemoryPercentages to add.
        Returns:
        This builder for chaining.
      • addAllInMemoryPercentages

        public ShowPartitionsResponse.Builder addAllInMemoryPercentages​(Iterable<? extends Long> values)
         Load percentage on querynode
         Deprecated: use GetLoadingProgress rpc instead
         
        repeated int64 inMemory_percentages = 6;
        Parameters:
        values - The inMemoryPercentages to add.
        Returns:
        This builder for chaining.
      • clearInMemoryPercentages

        public ShowPartitionsResponse.Builder clearInMemoryPercentages()
         Load percentage on querynode
         Deprecated: use GetLoadingProgress rpc instead
         
        repeated int64 inMemory_percentages = 6;
        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>