Class ShowCollectionsResponse.Builder

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

public static final class ShowCollectionsResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ShowCollectionsResponse.Builder> implements ShowCollectionsResponseOrBuilder

 Return basic collection infos.
 
Protobuf type milvus.proto.milvus.ShowCollectionsResponse
  • 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<ShowCollectionsResponse.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<ShowCollectionsResponse.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<ShowCollectionsResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

      public ShowCollectionsResponse.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<ShowCollectionsResponse.Builder>
      Throws:
      IOException
    • hasStatus

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

      public Status getStatus()
       Contain error_code and reason
       
      .milvus.proto.common.Status status = 1;
      Specified by:
      getStatus in interface ShowCollectionsResponseOrBuilder
      Returns:
      The status.
    • setStatus

      public ShowCollectionsResponse.Builder setStatus(Status value)
       Contain error_code and reason
       
      .milvus.proto.common.Status status = 1;
    • setStatus

      public ShowCollectionsResponse.Builder setStatus(Status.Builder builderForValue)
       Contain error_code and reason
       
      .milvus.proto.common.Status status = 1;
    • mergeStatus

      public ShowCollectionsResponse.Builder mergeStatus(Status value)
       Contain error_code and reason
       
      .milvus.proto.common.Status status = 1;
    • clearStatus

      public ShowCollectionsResponse.Builder clearStatus()
       Contain error_code and reason
       
      .milvus.proto.common.Status status = 1;
    • getStatusBuilder

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

      public StatusOrBuilder getStatusOrBuilder()
       Contain error_code and reason
       
      .milvus.proto.common.Status status = 1;
      Specified by:
      getStatusOrBuilder in interface ShowCollectionsResponseOrBuilder
    • getCollectionNamesList

      public com.google.protobuf.ProtocolStringList getCollectionNamesList()
       Collection name array
       
      repeated string collection_names = 2;
      Specified by:
      getCollectionNamesList in interface ShowCollectionsResponseOrBuilder
      Returns:
      A list containing the collectionNames.
    • getCollectionNamesCount

      public int getCollectionNamesCount()
       Collection name array
       
      repeated string collection_names = 2;
      Specified by:
      getCollectionNamesCount in interface ShowCollectionsResponseOrBuilder
      Returns:
      The count of collectionNames.
    • getCollectionNames

      public String getCollectionNames(int index)
       Collection name array
       
      repeated string collection_names = 2;
      Specified by:
      getCollectionNames in interface ShowCollectionsResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The collectionNames at the given index.
    • getCollectionNamesBytes

      public com.google.protobuf.ByteString getCollectionNamesBytes(int index)
       Collection name array
       
      repeated string collection_names = 2;
      Specified by:
      getCollectionNamesBytes in interface ShowCollectionsResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the collectionNames at the given index.
    • setCollectionNames

      public ShowCollectionsResponse.Builder setCollectionNames(int index, String value)
       Collection name array
       
      repeated string collection_names = 2;
      Parameters:
      index - The index to set the value at.
      value - The collectionNames to set.
      Returns:
      This builder for chaining.
    • addCollectionNames

      public ShowCollectionsResponse.Builder addCollectionNames(String value)
       Collection name array
       
      repeated string collection_names = 2;
      Parameters:
      value - The collectionNames to add.
      Returns:
      This builder for chaining.
    • addAllCollectionNames

      public ShowCollectionsResponse.Builder addAllCollectionNames(Iterable<String> values)
       Collection name array
       
      repeated string collection_names = 2;
      Parameters:
      values - The collectionNames to add.
      Returns:
      This builder for chaining.
    • clearCollectionNames

      public ShowCollectionsResponse.Builder clearCollectionNames()
       Collection name array
       
      repeated string collection_names = 2;
      Returns:
      This builder for chaining.
    • addCollectionNamesBytes

      public ShowCollectionsResponse.Builder addCollectionNamesBytes(com.google.protobuf.ByteString value)
       Collection name array
       
      repeated string collection_names = 2;
      Parameters:
      value - The bytes of the collectionNames to add.
      Returns:
      This builder for chaining.
    • getCollectionIdsList

      public List<Long> getCollectionIdsList()
       Collection Id array
       
      repeated int64 collection_ids = 3;
      Specified by:
      getCollectionIdsList in interface ShowCollectionsResponseOrBuilder
      Returns:
      A list containing the collectionIds.
    • getCollectionIdsCount

      public int getCollectionIdsCount()
       Collection Id array
       
      repeated int64 collection_ids = 3;
      Specified by:
      getCollectionIdsCount in interface ShowCollectionsResponseOrBuilder
      Returns:
      The count of collectionIds.
    • getCollectionIds

      public long getCollectionIds(int index)
       Collection Id array
       
      repeated int64 collection_ids = 3;
      Specified by:
      getCollectionIds in interface ShowCollectionsResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The collectionIds at the given index.
    • setCollectionIds

      public ShowCollectionsResponse.Builder setCollectionIds(int index, long value)
       Collection Id array
       
      repeated int64 collection_ids = 3;
      Parameters:
      index - The index to set the value at.
      value - The collectionIds to set.
      Returns:
      This builder for chaining.
    • addCollectionIds

      public ShowCollectionsResponse.Builder addCollectionIds(long value)
       Collection Id array
       
      repeated int64 collection_ids = 3;
      Parameters:
      value - The collectionIds to add.
      Returns:
      This builder for chaining.
    • addAllCollectionIds

      public ShowCollectionsResponse.Builder addAllCollectionIds(Iterable<? extends Long> values)
       Collection Id array
       
      repeated int64 collection_ids = 3;
      Parameters:
      values - The collectionIds to add.
      Returns:
      This builder for chaining.
    • clearCollectionIds

      public ShowCollectionsResponse.Builder clearCollectionIds()
       Collection Id array
       
      repeated int64 collection_ids = 3;
      Returns:
      This builder for chaining.
    • getCreatedTimestampsList

      public List<Long> getCreatedTimestampsList()
       Hybrid timestamps in milvus
       
      repeated uint64 created_timestamps = 4;
      Specified by:
      getCreatedTimestampsList in interface ShowCollectionsResponseOrBuilder
      Returns:
      A list containing the createdTimestamps.
    • getCreatedTimestampsCount

      public int getCreatedTimestampsCount()
       Hybrid timestamps in milvus
       
      repeated uint64 created_timestamps = 4;
      Specified by:
      getCreatedTimestampsCount in interface ShowCollectionsResponseOrBuilder
      Returns:
      The count of createdTimestamps.
    • getCreatedTimestamps

      public long getCreatedTimestamps(int index)
       Hybrid timestamps in milvus
       
      repeated uint64 created_timestamps = 4;
      Specified by:
      getCreatedTimestamps in interface ShowCollectionsResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The createdTimestamps at the given index.
    • setCreatedTimestamps

      public ShowCollectionsResponse.Builder setCreatedTimestamps(int index, long value)
       Hybrid timestamps in milvus
       
      repeated uint64 created_timestamps = 4;
      Parameters:
      index - The index to set the value at.
      value - The createdTimestamps to set.
      Returns:
      This builder for chaining.
    • addCreatedTimestamps

      public ShowCollectionsResponse.Builder addCreatedTimestamps(long value)
       Hybrid timestamps in milvus
       
      repeated uint64 created_timestamps = 4;
      Parameters:
      value - The createdTimestamps to add.
      Returns:
      This builder for chaining.
    • addAllCreatedTimestamps

      public ShowCollectionsResponse.Builder addAllCreatedTimestamps(Iterable<? extends Long> values)
       Hybrid timestamps in milvus
       
      repeated uint64 created_timestamps = 4;
      Parameters:
      values - The createdTimestamps to add.
      Returns:
      This builder for chaining.
    • clearCreatedTimestamps

      public ShowCollectionsResponse.Builder clearCreatedTimestamps()
       Hybrid timestamps in milvus
       
      repeated uint64 created_timestamps = 4;
      Returns:
      This builder for chaining.
    • getCreatedUtcTimestampsList

      public List<Long> getCreatedUtcTimestampsList()
       The utc timestamp calculated by created_timestamp
       
      repeated uint64 created_utc_timestamps = 5;
      Specified by:
      getCreatedUtcTimestampsList in interface ShowCollectionsResponseOrBuilder
      Returns:
      A list containing the createdUtcTimestamps.
    • getCreatedUtcTimestampsCount

      public int getCreatedUtcTimestampsCount()
       The utc timestamp calculated by created_timestamp
       
      repeated uint64 created_utc_timestamps = 5;
      Specified by:
      getCreatedUtcTimestampsCount in interface ShowCollectionsResponseOrBuilder
      Returns:
      The count of createdUtcTimestamps.
    • getCreatedUtcTimestamps

      public long getCreatedUtcTimestamps(int index)
       The utc timestamp calculated by created_timestamp
       
      repeated uint64 created_utc_timestamps = 5;
      Specified by:
      getCreatedUtcTimestamps in interface ShowCollectionsResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The createdUtcTimestamps at the given index.
    • setCreatedUtcTimestamps

      public ShowCollectionsResponse.Builder setCreatedUtcTimestamps(int index, long value)
       The utc timestamp calculated by created_timestamp
       
      repeated uint64 created_utc_timestamps = 5;
      Parameters:
      index - The index to set the value at.
      value - The createdUtcTimestamps to set.
      Returns:
      This builder for chaining.
    • addCreatedUtcTimestamps

      public ShowCollectionsResponse.Builder addCreatedUtcTimestamps(long value)
       The utc timestamp calculated by created_timestamp
       
      repeated uint64 created_utc_timestamps = 5;
      Parameters:
      value - The createdUtcTimestamps to add.
      Returns:
      This builder for chaining.
    • addAllCreatedUtcTimestamps

      public ShowCollectionsResponse.Builder addAllCreatedUtcTimestamps(Iterable<? extends Long> values)
       The utc timestamp calculated by created_timestamp
       
      repeated uint64 created_utc_timestamps = 5;
      Parameters:
      values - The createdUtcTimestamps to add.
      Returns:
      This builder for chaining.
    • clearCreatedUtcTimestamps

      public ShowCollectionsResponse.Builder clearCreatedUtcTimestamps()
       The utc timestamp calculated by created_timestamp
       
      repeated uint64 created_utc_timestamps = 5;
      Returns:
      This builder for chaining.
    • getInMemoryPercentagesList

      @Deprecated public List<Long> getInMemoryPercentagesList()
      Deprecated.
      milvus.proto.milvus.ShowCollectionsResponse.inMemory_percentages is deprecated. See milvus.proto;l=533
       Load percentage on querynode when type is InMemory
       Deprecated: use GetLoadingProgress rpc instead
       
      repeated int64 inMemory_percentages = 6 [deprecated = true];
      Specified by:
      getInMemoryPercentagesList in interface ShowCollectionsResponseOrBuilder
      Returns:
      A list containing the inMemoryPercentages.
    • getInMemoryPercentagesCount

      @Deprecated public int getInMemoryPercentagesCount()
      Deprecated.
      milvus.proto.milvus.ShowCollectionsResponse.inMemory_percentages is deprecated. See milvus.proto;l=533
       Load percentage on querynode when type is InMemory
       Deprecated: use GetLoadingProgress rpc instead
       
      repeated int64 inMemory_percentages = 6 [deprecated = true];
      Specified by:
      getInMemoryPercentagesCount in interface ShowCollectionsResponseOrBuilder
      Returns:
      The count of inMemoryPercentages.
    • getInMemoryPercentages

      @Deprecated public long getInMemoryPercentages(int index)
      Deprecated.
      milvus.proto.milvus.ShowCollectionsResponse.inMemory_percentages is deprecated. See milvus.proto;l=533
       Load percentage on querynode when type is InMemory
       Deprecated: use GetLoadingProgress rpc instead
       
      repeated int64 inMemory_percentages = 6 [deprecated = true];
      Specified by:
      getInMemoryPercentages in interface ShowCollectionsResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The inMemoryPercentages at the given index.
    • setInMemoryPercentages

      @Deprecated public ShowCollectionsResponse.Builder setInMemoryPercentages(int index, long value)
      Deprecated.
      milvus.proto.milvus.ShowCollectionsResponse.inMemory_percentages is deprecated. See milvus.proto;l=533
       Load percentage on querynode when type is InMemory
       Deprecated: use GetLoadingProgress rpc instead
       
      repeated int64 inMemory_percentages = 6 [deprecated = true];
      Parameters:
      index - The index to set the value at.
      value - The inMemoryPercentages to set.
      Returns:
      This builder for chaining.
    • addInMemoryPercentages

      @Deprecated public ShowCollectionsResponse.Builder addInMemoryPercentages(long value)
      Deprecated.
      milvus.proto.milvus.ShowCollectionsResponse.inMemory_percentages is deprecated. See milvus.proto;l=533
       Load percentage on querynode when type is InMemory
       Deprecated: use GetLoadingProgress rpc instead
       
      repeated int64 inMemory_percentages = 6 [deprecated = true];
      Parameters:
      value - The inMemoryPercentages to add.
      Returns:
      This builder for chaining.
    • addAllInMemoryPercentages

      @Deprecated public ShowCollectionsResponse.Builder addAllInMemoryPercentages(Iterable<? extends Long> values)
      Deprecated.
      milvus.proto.milvus.ShowCollectionsResponse.inMemory_percentages is deprecated. See milvus.proto;l=533
       Load percentage on querynode when type is InMemory
       Deprecated: use GetLoadingProgress rpc instead
       
      repeated int64 inMemory_percentages = 6 [deprecated = true];
      Parameters:
      values - The inMemoryPercentages to add.
      Returns:
      This builder for chaining.
    • clearInMemoryPercentages

      @Deprecated public ShowCollectionsResponse.Builder clearInMemoryPercentages()
      Deprecated.
      milvus.proto.milvus.ShowCollectionsResponse.inMemory_percentages is deprecated. See milvus.proto;l=533
       Load percentage on querynode when type is InMemory
       Deprecated: use GetLoadingProgress rpc instead
       
      repeated int64 inMemory_percentages = 6 [deprecated = true];
      Returns:
      This builder for chaining.
    • getQueryServiceAvailableList

      public List<Boolean> getQueryServiceAvailableList()
       Indicate whether query service is available
       
      repeated bool query_service_available = 7;
      Specified by:
      getQueryServiceAvailableList in interface ShowCollectionsResponseOrBuilder
      Returns:
      A list containing the queryServiceAvailable.
    • getQueryServiceAvailableCount

      public int getQueryServiceAvailableCount()
       Indicate whether query service is available
       
      repeated bool query_service_available = 7;
      Specified by:
      getQueryServiceAvailableCount in interface ShowCollectionsResponseOrBuilder
      Returns:
      The count of queryServiceAvailable.
    • getQueryServiceAvailable

      public boolean getQueryServiceAvailable(int index)
       Indicate whether query service is available
       
      repeated bool query_service_available = 7;
      Specified by:
      getQueryServiceAvailable in interface ShowCollectionsResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The queryServiceAvailable at the given index.
    • setQueryServiceAvailable

      public ShowCollectionsResponse.Builder setQueryServiceAvailable(int index, boolean value)
       Indicate whether query service is available
       
      repeated bool query_service_available = 7;
      Parameters:
      index - The index to set the value at.
      value - The queryServiceAvailable to set.
      Returns:
      This builder for chaining.
    • addQueryServiceAvailable

      public ShowCollectionsResponse.Builder addQueryServiceAvailable(boolean value)
       Indicate whether query service is available
       
      repeated bool query_service_available = 7;
      Parameters:
      value - The queryServiceAvailable to add.
      Returns:
      This builder for chaining.
    • addAllQueryServiceAvailable

      public ShowCollectionsResponse.Builder addAllQueryServiceAvailable(Iterable<? extends Boolean> values)
       Indicate whether query service is available
       
      repeated bool query_service_available = 7;
      Parameters:
      values - The queryServiceAvailable to add.
      Returns:
      This builder for chaining.
    • clearQueryServiceAvailable

      public ShowCollectionsResponse.Builder clearQueryServiceAvailable()
       Indicate whether query service is available
       
      repeated bool query_service_available = 7;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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