Class GetImportStateResponse.Builder

    • 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<GetImportStateResponse.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

        public GetImportStateResponse.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<GetImportStateResponse.Builder>
        Throws:
        IOException
      • getStatusBuilder

        public Status.Builder getStatusBuilder()
        .milvus.proto.common.Status status = 1;
      • getStateValue

        public int getStateValue()
         is this import task finished or not
         
        .milvus.proto.common.ImportState state = 2;
        Specified by:
        getStateValue in interface GetImportStateResponseOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public GetImportStateResponse.Builder setStateValue​(int value)
         is this import task finished or not
         
        .milvus.proto.common.ImportState state = 2;
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • setState

        public GetImportStateResponse.Builder setState​(ImportState value)
         is this import task finished or not
         
        .milvus.proto.common.ImportState state = 2;
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public GetImportStateResponse.Builder clearState()
         is this import task finished or not
         
        .milvus.proto.common.ImportState state = 2;
        Returns:
        This builder for chaining.
      • getRowCount

        public long getRowCount()
         if the task is finished, this value is how many rows are imported. if the task is not finished, this value is how many rows are parsed. return 0 if failed.
         
        int64 row_count = 3;
        Specified by:
        getRowCount in interface GetImportStateResponseOrBuilder
        Returns:
        The rowCount.
      • setRowCount

        public GetImportStateResponse.Builder setRowCount​(long value)
         if the task is finished, this value is how many rows are imported. if the task is not finished, this value is how many rows are parsed. return 0 if failed.
         
        int64 row_count = 3;
        Parameters:
        value - The rowCount to set.
        Returns:
        This builder for chaining.
      • clearRowCount

        public GetImportStateResponse.Builder clearRowCount()
         if the task is finished, this value is how many rows are imported. if the task is not finished, this value is how many rows are parsed. return 0 if failed.
         
        int64 row_count = 3;
        Returns:
        This builder for chaining.
      • getIdListCount

        public int getIdListCount()
         auto generated ids if the primary key is autoid
         
        repeated int64 id_list = 4;
        Specified by:
        getIdListCount in interface GetImportStateResponseOrBuilder
        Returns:
        The count of idList.
      • getIdList

        public long getIdList​(int index)
         auto generated ids if the primary key is autoid
         
        repeated int64 id_list = 4;
        Specified by:
        getIdList in interface GetImportStateResponseOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The idList at the given index.
      • setIdList

        public GetImportStateResponse.Builder setIdList​(int index,
                                                        long value)
         auto generated ids if the primary key is autoid
         
        repeated int64 id_list = 4;
        Parameters:
        index - The index to set the value at.
        value - The idList to set.
        Returns:
        This builder for chaining.
      • addIdList

        public GetImportStateResponse.Builder addIdList​(long value)
         auto generated ids if the primary key is autoid
         
        repeated int64 id_list = 4;
        Parameters:
        value - The idList to add.
        Returns:
        This builder for chaining.
      • addAllIdList

        public GetImportStateResponse.Builder addAllIdList​(Iterable<? extends Long> values)
         auto generated ids if the primary key is autoid
         
        repeated int64 id_list = 4;
        Parameters:
        values - The idList to add.
        Returns:
        This builder for chaining.
      • clearIdList

        public GetImportStateResponse.Builder clearIdList()
         auto generated ids if the primary key is autoid
         
        repeated int64 id_list = 4;
        Returns:
        This builder for chaining.
      • getInfosCount

        public int getInfosCount()
         more information about the task, progress percent, file path, failed reason, etc.
         
        repeated .milvus.proto.common.KeyValuePair infos = 5;
        Specified by:
        getInfosCount in interface GetImportStateResponseOrBuilder
      • getInfos

        public KeyValuePair getInfos​(int index)
         more information about the task, progress percent, file path, failed reason, etc.
         
        repeated .milvus.proto.common.KeyValuePair infos = 5;
        Specified by:
        getInfos in interface GetImportStateResponseOrBuilder
      • setInfos

        public GetImportStateResponse.Builder setInfos​(int index,
                                                       KeyValuePair value)
         more information about the task, progress percent, file path, failed reason, etc.
         
        repeated .milvus.proto.common.KeyValuePair infos = 5;
      • addInfos

        public GetImportStateResponse.Builder addInfos​(KeyValuePair value)
         more information about the task, progress percent, file path, failed reason, etc.
         
        repeated .milvus.proto.common.KeyValuePair infos = 5;
      • addInfos

        public GetImportStateResponse.Builder addInfos​(int index,
                                                       KeyValuePair value)
         more information about the task, progress percent, file path, failed reason, etc.
         
        repeated .milvus.proto.common.KeyValuePair infos = 5;
      • clearInfos

        public GetImportStateResponse.Builder clearInfos()
         more information about the task, progress percent, file path, failed reason, etc.
         
        repeated .milvus.proto.common.KeyValuePair infos = 5;
      • removeInfos

        public GetImportStateResponse.Builder removeInfos​(int index)
         more information about the task, progress percent, file path, failed reason, etc.
         
        repeated .milvus.proto.common.KeyValuePair infos = 5;
      • getInfosBuilder

        public KeyValuePair.Builder getInfosBuilder​(int index)
         more information about the task, progress percent, file path, failed reason, etc.
         
        repeated .milvus.proto.common.KeyValuePair infos = 5;
      • addInfosBuilder

        public KeyValuePair.Builder addInfosBuilder()
         more information about the task, progress percent, file path, failed reason, etc.
         
        repeated .milvus.proto.common.KeyValuePair infos = 5;
      • addInfosBuilder

        public KeyValuePair.Builder addInfosBuilder​(int index)
         more information about the task, progress percent, file path, failed reason, etc.
         
        repeated .milvus.proto.common.KeyValuePair infos = 5;
      • getInfosBuilderList

        public List<KeyValuePair.Builder> getInfosBuilderList()
         more information about the task, progress percent, file path, failed reason, etc.
         
        repeated .milvus.proto.common.KeyValuePair infos = 5;
      • setId

        public GetImportStateResponse.Builder setId​(long value)
         id of an import task
         
        int64 id = 6;
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • setCollectionId

        public GetImportStateResponse.Builder setCollectionId​(long value)
         collection ID of the import task.
         
        int64 collection_id = 7;
        Parameters:
        value - The collectionId to set.
        Returns:
        This builder for chaining.
      • clearCollectionId

        public GetImportStateResponse.Builder clearCollectionId()
         collection ID of the import task.
         
        int64 collection_id = 7;
        Returns:
        This builder for chaining.
      • getSegmentIdsCount

        public int getSegmentIdsCount()
         a list of segment IDs created by the import task.
         
        repeated int64 segment_ids = 8;
        Specified by:
        getSegmentIdsCount in interface GetImportStateResponseOrBuilder
        Returns:
        The count of segmentIds.
      • getSegmentIds

        public long getSegmentIds​(int index)
         a list of segment IDs created by the import task.
         
        repeated int64 segment_ids = 8;
        Specified by:
        getSegmentIds in interface GetImportStateResponseOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The segmentIds at the given index.
      • setSegmentIds

        public GetImportStateResponse.Builder setSegmentIds​(int index,
                                                            long value)
         a list of segment IDs created by the import task.
         
        repeated int64 segment_ids = 8;
        Parameters:
        index - The index to set the value at.
        value - The segmentIds to set.
        Returns:
        This builder for chaining.
      • addSegmentIds

        public GetImportStateResponse.Builder addSegmentIds​(long value)
         a list of segment IDs created by the import task.
         
        repeated int64 segment_ids = 8;
        Parameters:
        value - The segmentIds to add.
        Returns:
        This builder for chaining.
      • addAllSegmentIds

        public GetImportStateResponse.Builder addAllSegmentIds​(Iterable<? extends Long> values)
         a list of segment IDs created by the import task.
         
        repeated int64 segment_ids = 8;
        Parameters:
        values - The segmentIds to add.
        Returns:
        This builder for chaining.
      • clearSegmentIds

        public GetImportStateResponse.Builder clearSegmentIds()
         a list of segment IDs created by the import task.
         
        repeated int64 segment_ids = 8;
        Returns:
        This builder for chaining.
      • setCreateTs

        public GetImportStateResponse.Builder setCreateTs​(long value)
         timestamp when the import task is created.
         
        int64 create_ts = 9;
        Parameters:
        value - The createTs to set.
        Returns:
        This builder for chaining.
      • clearCreateTs

        public GetImportStateResponse.Builder clearCreateTs()
         timestamp when the import task is created.
         
        int64 create_ts = 9;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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