Class GetImportStateResponse.Builder

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

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

      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>
    • setField

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

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

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

      public Status getStatus()
      .milvus.proto.common.Status status = 1;
      Specified by:
      getStatus in interface GetImportStateResponseOrBuilder
      Returns:
      The status.
    • setStatus

      public GetImportStateResponse.Builder setStatus(Status value)
      .milvus.proto.common.Status status = 1;
    • setStatus

      public GetImportStateResponse.Builder setStatus(Status.Builder builderForValue)
      .milvus.proto.common.Status status = 1;
    • mergeStatus

      public GetImportStateResponse.Builder mergeStatus(Status value)
      .milvus.proto.common.Status status = 1;
    • clearStatus

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

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

      public StatusOrBuilder getStatusOrBuilder()
      .milvus.proto.common.Status status = 1;
      Specified by:
      getStatusOrBuilder in interface GetImportStateResponseOrBuilder
    • 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.
    • getState

      public ImportState getState()
       is this import task finished or not
       
      .milvus.proto.common.ImportState state = 2;
      Specified by:
      getState in interface GetImportStateResponseOrBuilder
      Returns:
      The state.
    • setState

       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.
    • getIdListList

      public List<Long> getIdListList()
       auto generated ids if the primary key is autoid
       
      repeated int64 id_list = 4;
      Specified by:
      getIdListList in interface GetImportStateResponseOrBuilder
      Returns:
      A list containing the idList.
    • 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.
    • getInfosList

      public List<KeyValuePair> getInfosList()
       more information about the task, progress percent, file path, failed reason, etc.
       
      repeated .milvus.proto.common.KeyValuePair infos = 5;
      Specified by:
      getInfosList in interface GetImportStateResponseOrBuilder
    • 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;
    • setInfos

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

       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;
    • addInfos

      public GetImportStateResponse.Builder addInfos(KeyValuePair.Builder builderForValue)
       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.Builder builderForValue)
       more information about the task, progress percent, file path, failed reason, etc.
       
      repeated .milvus.proto.common.KeyValuePair infos = 5;
    • addAllInfos

      public GetImportStateResponse.Builder addAllInfos(Iterable<? extends KeyValuePair> values)
       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;
    • getInfosOrBuilder

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

      public List<? extends KeyValuePairOrBuilder> getInfosOrBuilderList()
       more information about the task, progress percent, file path, failed reason, etc.
       
      repeated .milvus.proto.common.KeyValuePair infos = 5;
      Specified by:
      getInfosOrBuilderList in interface GetImportStateResponseOrBuilder
    • 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;
    • getId

      public long getId()
       id of an import task
       
      int64 id = 6;
      Specified by:
      getId in interface GetImportStateResponseOrBuilder
      Returns:
      The id.
    • 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.
    • clearId

       id of an import task
       
      int64 id = 6;
      Returns:
      This builder for chaining.
    • getCollectionId

      public long getCollectionId()
       collection ID of the import task.
       
      int64 collection_id = 7;
      Specified by:
      getCollectionId in interface GetImportStateResponseOrBuilder
      Returns:
      The collectionId.
    • 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.
    • getSegmentIdsList

      public List<Long> getSegmentIdsList()
       a list of segment IDs created by the import task.
       
      repeated int64 segment_ids = 8;
      Specified by:
      getSegmentIdsList in interface GetImportStateResponseOrBuilder
      Returns:
      A list containing the segmentIds.
    • 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.
    • getCreateTs

      public long getCreateTs()
       timestamp when the import task is created.
       
      int64 create_ts = 9;
      Specified by:
      getCreateTs in interface GetImportStateResponseOrBuilder
      Returns:
      The createTs.
    • 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>