Class ReleasePartitionsRequest.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ReleasePartitionsRequestOrBuilder, Cloneable
    Enclosing class:
    ReleasePartitionsRequest

    public static final class ReleasePartitionsRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ReleasePartitionsRequest.Builder>
    implements ReleasePartitionsRequestOrBuilder
     Release specific partitions data of one collection from query nodes.
     Then you can not get these data as result when you do vector search on this collection.
     
    Protobuf type milvus.proto.milvus.ReleasePartitionsRequest
    • 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<ReleasePartitionsRequest.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<ReleasePartitionsRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public ReleasePartitionsRequest.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<ReleasePartitionsRequest.Builder>
      • addRepeatedField

        public ReleasePartitionsRequest.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<ReleasePartitionsRequest.Builder>
      • isInitialized

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

        public ReleasePartitionsRequest.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<ReleasePartitionsRequest.Builder>
        Throws:
        IOException
      • hasBase

        public boolean hasBase()
         Not useful for now
         
        .milvus.proto.common.MsgBase base = 1;
        Specified by:
        hasBase in interface ReleasePartitionsRequestOrBuilder
        Returns:
        Whether the base field is set.
      • getBaseBuilder

        public MsgBase.Builder getBaseBuilder()
         Not useful for now
         
        .milvus.proto.common.MsgBase base = 1;
      • setDbNameBytes

        public ReleasePartitionsRequest.Builder setDbNameBytes​(com.google.protobuf.ByteString value)
        string db_name = 2;
        Parameters:
        value - The bytes for dbName to set.
        Returns:
        This builder for chaining.
      • setCollectionName

        public ReleasePartitionsRequest.Builder setCollectionName​(String value)
         The collection name in milvus
         
        string collection_name = 3;
        Parameters:
        value - The collectionName to set.
        Returns:
        This builder for chaining.
      • clearCollectionName

        public ReleasePartitionsRequest.Builder clearCollectionName()
         The collection name in milvus
         
        string collection_name = 3;
        Returns:
        This builder for chaining.
      • setCollectionNameBytes

        public ReleasePartitionsRequest.Builder setCollectionNameBytes​(com.google.protobuf.ByteString value)
         The collection name in milvus
         
        string collection_name = 3;
        Parameters:
        value - The bytes for collectionName to set.
        Returns:
        This builder for chaining.
      • getPartitionNamesList

        public com.google.protobuf.ProtocolStringList getPartitionNamesList()
         The partition names you want to release
         
        repeated string partition_names = 4;
        Specified by:
        getPartitionNamesList in interface ReleasePartitionsRequestOrBuilder
        Returns:
        A list containing the partitionNames.
      • getPartitionNames

        public String getPartitionNames​(int index)
         The partition names you want to release
         
        repeated string partition_names = 4;
        Specified by:
        getPartitionNames in interface ReleasePartitionsRequestOrBuilder
        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)
         The partition names you want to release
         
        repeated string partition_names = 4;
        Specified by:
        getPartitionNamesBytes in interface ReleasePartitionsRequestOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the partitionNames at the given index.
      • setPartitionNames

        public ReleasePartitionsRequest.Builder setPartitionNames​(int index,
                                                                  String value)
         The partition names you want to release
         
        repeated string partition_names = 4;
        Parameters:
        index - The index to set the value at.
        value - The partitionNames to set.
        Returns:
        This builder for chaining.
      • addPartitionNames

        public ReleasePartitionsRequest.Builder addPartitionNames​(String value)
         The partition names you want to release
         
        repeated string partition_names = 4;
        Parameters:
        value - The partitionNames to add.
        Returns:
        This builder for chaining.
      • addAllPartitionNames

        public ReleasePartitionsRequest.Builder addAllPartitionNames​(Iterable<String> values)
         The partition names you want to release
         
        repeated string partition_names = 4;
        Parameters:
        values - The partitionNames to add.
        Returns:
        This builder for chaining.
      • clearPartitionNames

        public ReleasePartitionsRequest.Builder clearPartitionNames()
         The partition names you want to release
         
        repeated string partition_names = 4;
        Returns:
        This builder for chaining.
      • addPartitionNamesBytes

        public ReleasePartitionsRequest.Builder addPartitionNamesBytes​(com.google.protobuf.ByteString value)
         The partition names you want to release
         
        repeated string partition_names = 4;
        Parameters:
        value - The bytes of the partitionNames to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ReleasePartitionsRequest.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<ReleasePartitionsRequest.Builder>
      • mergeUnknownFields

        public final ReleasePartitionsRequest.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<ReleasePartitionsRequest.Builder>