Class GetImportStateResponse

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.milvus.grpc.GetImportStateResponse
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, GetImportStateResponseOrBuilder, Serializable

public final class GetImportStateResponse extends com.google.protobuf.GeneratedMessageV3 implements GetImportStateResponseOrBuilder
Protobuf type milvus.proto.milvus.GetImportStateResponse
See Also:
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • 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
    • 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
    • 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
    • getId

      public long getId()
       id of an import task
       
      int64 id = 6;
      Specified by:
      getId in interface GetImportStateResponseOrBuilder
      Returns:
      The id.
    • getCollectionId

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

      public long getCreateTs()
       timestamp when the import task is created.
       
      int64 create_ts = 9;
      Specified by:
      getCreateTs in interface GetImportStateResponseOrBuilder
      Returns:
      The createTs.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static GetImportStateResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GetImportStateResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GetImportStateResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GetImportStateResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GetImportStateResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GetImportStateResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GetImportStateResponse parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GetImportStateResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GetImportStateResponse parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GetImportStateResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GetImportStateResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GetImportStateResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static GetImportStateResponse.Builder newBuilder()
    • newBuilder

      public static GetImportStateResponse.Builder newBuilder(GetImportStateResponse prototype)
    • toBuilder

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

      protected GetImportStateResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static GetImportStateResponse getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<GetImportStateResponse> parser()
    • getParserForType

      public com.google.protobuf.Parser<GetImportStateResponse> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

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