Class ImportRequest.Builder

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

    public static final class ImportRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ImportRequest.Builder>
    implements ImportRequestOrBuilder
    Protobuf type milvus.proto.milvus.ImportRequest
    • 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<ImportRequest.Builder>
      • clear

        public ImportRequest.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<ImportRequest.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<ImportRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public ImportRequest.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<ImportRequest.Builder>
      • setField

        public ImportRequest.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<ImportRequest.Builder>
      • clearField

        public ImportRequest.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<ImportRequest.Builder>
      • clearOneof

        public ImportRequest.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<ImportRequest.Builder>
      • setRepeatedField

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

        public ImportRequest.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<ImportRequest.Builder>
      • mergeFrom

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

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

        public ImportRequest.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<ImportRequest.Builder>
        Throws:
        IOException
      • getCollectionNameBytes

        public com.google.protobuf.ByteString getCollectionNameBytes()
         target collection
         
        string collection_name = 1;
        Specified by:
        getCollectionNameBytes in interface ImportRequestOrBuilder
        Returns:
        The bytes for collectionName.
      • setCollectionName

        public ImportRequest.Builder setCollectionName​(String value)
         target collection
         
        string collection_name = 1;
        Parameters:
        value - The collectionName to set.
        Returns:
        This builder for chaining.
      • clearCollectionName

        public ImportRequest.Builder clearCollectionName()
         target collection
         
        string collection_name = 1;
        Returns:
        This builder for chaining.
      • setCollectionNameBytes

        public ImportRequest.Builder setCollectionNameBytes​(com.google.protobuf.ByteString value)
         target collection
         
        string collection_name = 1;
        Parameters:
        value - The bytes for collectionName to set.
        Returns:
        This builder for chaining.
      • getPartitionNameBytes

        public com.google.protobuf.ByteString getPartitionNameBytes()
         target partition
         
        string partition_name = 2;
        Specified by:
        getPartitionNameBytes in interface ImportRequestOrBuilder
        Returns:
        The bytes for partitionName.
      • setPartitionName

        public ImportRequest.Builder setPartitionName​(String value)
         target partition
         
        string partition_name = 2;
        Parameters:
        value - The partitionName to set.
        Returns:
        This builder for chaining.
      • clearPartitionName

        public ImportRequest.Builder clearPartitionName()
         target partition
         
        string partition_name = 2;
        Returns:
        This builder for chaining.
      • setPartitionNameBytes

        public ImportRequest.Builder setPartitionNameBytes​(com.google.protobuf.ByteString value)
         target partition
         
        string partition_name = 2;
        Parameters:
        value - The bytes for partitionName to set.
        Returns:
        This builder for chaining.
      • getChannelNamesList

        public com.google.protobuf.ProtocolStringList getChannelNamesList()
         channel names for the collection
         
        repeated string channel_names = 3;
        Specified by:
        getChannelNamesList in interface ImportRequestOrBuilder
        Returns:
        A list containing the channelNames.
      • getChannelNamesCount

        public int getChannelNamesCount()
         channel names for the collection
         
        repeated string channel_names = 3;
        Specified by:
        getChannelNamesCount in interface ImportRequestOrBuilder
        Returns:
        The count of channelNames.
      • getChannelNames

        public String getChannelNames​(int index)
         channel names for the collection
         
        repeated string channel_names = 3;
        Specified by:
        getChannelNames in interface ImportRequestOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The channelNames at the given index.
      • getChannelNamesBytes

        public com.google.protobuf.ByteString getChannelNamesBytes​(int index)
         channel names for the collection
         
        repeated string channel_names = 3;
        Specified by:
        getChannelNamesBytes in interface ImportRequestOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the channelNames at the given index.
      • setChannelNames

        public ImportRequest.Builder setChannelNames​(int index,
                                                     String value)
         channel names for the collection
         
        repeated string channel_names = 3;
        Parameters:
        index - The index to set the value at.
        value - The channelNames to set.
        Returns:
        This builder for chaining.
      • addChannelNames

        public ImportRequest.Builder addChannelNames​(String value)
         channel names for the collection
         
        repeated string channel_names = 3;
        Parameters:
        value - The channelNames to add.
        Returns:
        This builder for chaining.
      • addAllChannelNames

        public ImportRequest.Builder addAllChannelNames​(Iterable<String> values)
         channel names for the collection
         
        repeated string channel_names = 3;
        Parameters:
        values - The channelNames to add.
        Returns:
        This builder for chaining.
      • clearChannelNames

        public ImportRequest.Builder clearChannelNames()
         channel names for the collection
         
        repeated string channel_names = 3;
        Returns:
        This builder for chaining.
      • addChannelNamesBytes

        public ImportRequest.Builder addChannelNamesBytes​(com.google.protobuf.ByteString value)
         channel names for the collection
         
        repeated string channel_names = 3;
        Parameters:
        value - The bytes of the channelNames to add.
        Returns:
        This builder for chaining.
      • getRowBased

        public boolean getRowBased()
         the file is row-based or column-based
         
        bool row_based = 4;
        Specified by:
        getRowBased in interface ImportRequestOrBuilder
        Returns:
        The rowBased.
      • setRowBased

        public ImportRequest.Builder setRowBased​(boolean value)
         the file is row-based or column-based
         
        bool row_based = 4;
        Parameters:
        value - The rowBased to set.
        Returns:
        This builder for chaining.
      • clearRowBased

        public ImportRequest.Builder clearRowBased()
         the file is row-based or column-based
         
        bool row_based = 4;
        Returns:
        This builder for chaining.
      • getFilesList

        public com.google.protobuf.ProtocolStringList getFilesList()
         file paths to be imported
         
        repeated string files = 5;
        Specified by:
        getFilesList in interface ImportRequestOrBuilder
        Returns:
        A list containing the files.
      • getFilesCount

        public int getFilesCount()
         file paths to be imported
         
        repeated string files = 5;
        Specified by:
        getFilesCount in interface ImportRequestOrBuilder
        Returns:
        The count of files.
      • getFiles

        public String getFiles​(int index)
         file paths to be imported
         
        repeated string files = 5;
        Specified by:
        getFiles in interface ImportRequestOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The files at the given index.
      • getFilesBytes

        public com.google.protobuf.ByteString getFilesBytes​(int index)
         file paths to be imported
         
        repeated string files = 5;
        Specified by:
        getFilesBytes in interface ImportRequestOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the files at the given index.
      • setFiles

        public ImportRequest.Builder setFiles​(int index,
                                              String value)
         file paths to be imported
         
        repeated string files = 5;
        Parameters:
        index - The index to set the value at.
        value - The files to set.
        Returns:
        This builder for chaining.
      • addFiles

        public ImportRequest.Builder addFiles​(String value)
         file paths to be imported
         
        repeated string files = 5;
        Parameters:
        value - The files to add.
        Returns:
        This builder for chaining.
      • addAllFiles

        public ImportRequest.Builder addAllFiles​(Iterable<String> values)
         file paths to be imported
         
        repeated string files = 5;
        Parameters:
        values - The files to add.
        Returns:
        This builder for chaining.
      • clearFiles

        public ImportRequest.Builder clearFiles()
         file paths to be imported
         
        repeated string files = 5;
        Returns:
        This builder for chaining.
      • addFilesBytes

        public ImportRequest.Builder addFilesBytes​(com.google.protobuf.ByteString value)
         file paths to be imported
         
        repeated string files = 5;
        Parameters:
        value - The bytes of the files to add.
        Returns:
        This builder for chaining.
      • getOptionsCount

        public int getOptionsCount()
         import options, bucket, etc.
         
        repeated .milvus.proto.common.KeyValuePair options = 6;
        Specified by:
        getOptionsCount in interface ImportRequestOrBuilder
      • setOptions

        public ImportRequest.Builder setOptions​(int index,
                                                KeyValuePair value)
         import options, bucket, etc.
         
        repeated .milvus.proto.common.KeyValuePair options = 6;
      • addOptions

        public ImportRequest.Builder addOptions​(int index,
                                                KeyValuePair value)
         import options, bucket, etc.
         
        repeated .milvus.proto.common.KeyValuePair options = 6;
      • clearOptions

        public ImportRequest.Builder clearOptions()
         import options, bucket, etc.
         
        repeated .milvus.proto.common.KeyValuePair options = 6;
      • removeOptions

        public ImportRequest.Builder removeOptions​(int index)
         import options, bucket, etc.
         
        repeated .milvus.proto.common.KeyValuePair options = 6;
      • getOptionsBuilder

        public KeyValuePair.Builder getOptionsBuilder​(int index)
         import options, bucket, etc.
         
        repeated .milvus.proto.common.KeyValuePair options = 6;
      • addOptionsBuilder

        public KeyValuePair.Builder addOptionsBuilder()
         import options, bucket, etc.
         
        repeated .milvus.proto.common.KeyValuePair options = 6;
      • addOptionsBuilder

        public KeyValuePair.Builder addOptionsBuilder​(int index)
         import options, bucket, etc.
         
        repeated .milvus.proto.common.KeyValuePair options = 6;
      • getOptionsBuilderList

        public List<KeyValuePair.Builder> getOptionsBuilderList()
         import options, bucket, etc.
         
        repeated .milvus.proto.common.KeyValuePair options = 6;
      • getDbNameBytes

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

        public ImportRequest.Builder setDbName​(String value)
        string db_name = 7;
        Parameters:
        value - The dbName to set.
        Returns:
        This builder for chaining.
      • clearDbName

        public ImportRequest.Builder clearDbName()
        string db_name = 7;
        Returns:
        This builder for chaining.
      • setDbNameBytes

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

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

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