Class DescribeCollectionResponse.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<DescribeCollectionResponse.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<DescribeCollectionResponse.Builder>
      • getDefaultInstanceForType

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

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

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

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

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

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

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

        public boolean hasSchema()
         The schema param when you created collection.
         
        .milvus.proto.schema.CollectionSchema schema = 2;
        Specified by:
        hasSchema in interface DescribeCollectionResponseOrBuilder
        Returns:
        Whether the schema field is set.
      • getSchemaBuilder

        public CollectionSchema.Builder getSchemaBuilder()
         The schema param when you created collection.
         
        .milvus.proto.schema.CollectionSchema schema = 2;
      • setCollectionID

        public DescribeCollectionResponse.Builder setCollectionID​(long value)
         The collection id
         
        int64 collectionID = 3;
        Parameters:
        value - The collectionID to set.
        Returns:
        This builder for chaining.
      • getVirtualChannelNamesList

        public com.google.protobuf.ProtocolStringList getVirtualChannelNamesList()
         System design related, users should not perceive
         
        repeated string virtual_channel_names = 4;
        Specified by:
        getVirtualChannelNamesList in interface DescribeCollectionResponseOrBuilder
        Returns:
        A list containing the virtualChannelNames.
      • getVirtualChannelNames

        public String getVirtualChannelNames​(int index)
         System design related, users should not perceive
         
        repeated string virtual_channel_names = 4;
        Specified by:
        getVirtualChannelNames in interface DescribeCollectionResponseOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The virtualChannelNames at the given index.
      • getVirtualChannelNamesBytes

        public com.google.protobuf.ByteString getVirtualChannelNamesBytes​(int index)
         System design related, users should not perceive
         
        repeated string virtual_channel_names = 4;
        Specified by:
        getVirtualChannelNamesBytes in interface DescribeCollectionResponseOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the virtualChannelNames at the given index.
      • setVirtualChannelNames

        public DescribeCollectionResponse.Builder setVirtualChannelNames​(int index,
                                                                         String value)
         System design related, users should not perceive
         
        repeated string virtual_channel_names = 4;
        Parameters:
        index - The index to set the value at.
        value - The virtualChannelNames to set.
        Returns:
        This builder for chaining.
      • addVirtualChannelNames

        public DescribeCollectionResponse.Builder addVirtualChannelNames​(String value)
         System design related, users should not perceive
         
        repeated string virtual_channel_names = 4;
        Parameters:
        value - The virtualChannelNames to add.
        Returns:
        This builder for chaining.
      • addAllVirtualChannelNames

        public DescribeCollectionResponse.Builder addAllVirtualChannelNames​(Iterable<String> values)
         System design related, users should not perceive
         
        repeated string virtual_channel_names = 4;
        Parameters:
        values - The virtualChannelNames to add.
        Returns:
        This builder for chaining.
      • clearVirtualChannelNames

        public DescribeCollectionResponse.Builder clearVirtualChannelNames()
         System design related, users should not perceive
         
        repeated string virtual_channel_names = 4;
        Returns:
        This builder for chaining.
      • addVirtualChannelNamesBytes

        public DescribeCollectionResponse.Builder addVirtualChannelNamesBytes​(com.google.protobuf.ByteString value)
         System design related, users should not perceive
         
        repeated string virtual_channel_names = 4;
        Parameters:
        value - The bytes of the virtualChannelNames to add.
        Returns:
        This builder for chaining.
      • getPhysicalChannelNamesList

        public com.google.protobuf.ProtocolStringList getPhysicalChannelNamesList()
         System design related, users should not perceive
         
        repeated string physical_channel_names = 5;
        Specified by:
        getPhysicalChannelNamesList in interface DescribeCollectionResponseOrBuilder
        Returns:
        A list containing the physicalChannelNames.
      • getPhysicalChannelNames

        public String getPhysicalChannelNames​(int index)
         System design related, users should not perceive
         
        repeated string physical_channel_names = 5;
        Specified by:
        getPhysicalChannelNames in interface DescribeCollectionResponseOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The physicalChannelNames at the given index.
      • getPhysicalChannelNamesBytes

        public com.google.protobuf.ByteString getPhysicalChannelNamesBytes​(int index)
         System design related, users should not perceive
         
        repeated string physical_channel_names = 5;
        Specified by:
        getPhysicalChannelNamesBytes in interface DescribeCollectionResponseOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the physicalChannelNames at the given index.
      • setPhysicalChannelNames

        public DescribeCollectionResponse.Builder setPhysicalChannelNames​(int index,
                                                                          String value)
         System design related, users should not perceive
         
        repeated string physical_channel_names = 5;
        Parameters:
        index - The index to set the value at.
        value - The physicalChannelNames to set.
        Returns:
        This builder for chaining.
      • addPhysicalChannelNames

        public DescribeCollectionResponse.Builder addPhysicalChannelNames​(String value)
         System design related, users should not perceive
         
        repeated string physical_channel_names = 5;
        Parameters:
        value - The physicalChannelNames to add.
        Returns:
        This builder for chaining.
      • addAllPhysicalChannelNames

        public DescribeCollectionResponse.Builder addAllPhysicalChannelNames​(Iterable<String> values)
         System design related, users should not perceive
         
        repeated string physical_channel_names = 5;
        Parameters:
        values - The physicalChannelNames to add.
        Returns:
        This builder for chaining.
      • clearPhysicalChannelNames

        public DescribeCollectionResponse.Builder clearPhysicalChannelNames()
         System design related, users should not perceive
         
        repeated string physical_channel_names = 5;
        Returns:
        This builder for chaining.
      • addPhysicalChannelNamesBytes

        public DescribeCollectionResponse.Builder addPhysicalChannelNamesBytes​(com.google.protobuf.ByteString value)
         System design related, users should not perceive
         
        repeated string physical_channel_names = 5;
        Parameters:
        value - The bytes of the physicalChannelNames to add.
        Returns:
        This builder for chaining.
      • setCreatedTimestamp

        public DescribeCollectionResponse.Builder setCreatedTimestamp​(long value)
         Hybrid timestamp in milvus
         
        uint64 created_timestamp = 6;
        Parameters:
        value - The createdTimestamp to set.
        Returns:
        This builder for chaining.
      • clearCreatedTimestamp

        public DescribeCollectionResponse.Builder clearCreatedTimestamp()
         Hybrid timestamp in milvus
         
        uint64 created_timestamp = 6;
        Returns:
        This builder for chaining.
      • setCreatedUtcTimestamp

        public DescribeCollectionResponse.Builder setCreatedUtcTimestamp​(long value)
         The utc timestamp calculated by created_timestamp
         
        uint64 created_utc_timestamp = 7;
        Parameters:
        value - The createdUtcTimestamp to set.
        Returns:
        This builder for chaining.
      • clearCreatedUtcTimestamp

        public DescribeCollectionResponse.Builder clearCreatedUtcTimestamp()
         The utc timestamp calculated by created_timestamp
         
        uint64 created_utc_timestamp = 7;
        Returns:
        This builder for chaining.
      • setShardsNum

        public DescribeCollectionResponse.Builder setShardsNum​(int value)
         The shards number you set.
         
        int32 shards_num = 8;
        Parameters:
        value - The shardsNum to set.
        Returns:
        This builder for chaining.
      • getAliasesList

        public com.google.protobuf.ProtocolStringList getAliasesList()
         The aliases of this collection
         
        repeated string aliases = 9;
        Specified by:
        getAliasesList in interface DescribeCollectionResponseOrBuilder
        Returns:
        A list containing the aliases.
      • getAliases

        public String getAliases​(int index)
         The aliases of this collection
         
        repeated string aliases = 9;
        Specified by:
        getAliases in interface DescribeCollectionResponseOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The aliases at the given index.
      • getAliasesBytes

        public com.google.protobuf.ByteString getAliasesBytes​(int index)
         The aliases of this collection
         
        repeated string aliases = 9;
        Specified by:
        getAliasesBytes in interface DescribeCollectionResponseOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the aliases at the given index.
      • setAliases

        public DescribeCollectionResponse.Builder setAliases​(int index,
                                                             String value)
         The aliases of this collection
         
        repeated string aliases = 9;
        Parameters:
        index - The index to set the value at.
        value - The aliases to set.
        Returns:
        This builder for chaining.
      • addAliases

        public DescribeCollectionResponse.Builder addAliases​(String value)
         The aliases of this collection
         
        repeated string aliases = 9;
        Parameters:
        value - The aliases to add.
        Returns:
        This builder for chaining.
      • addAliasesBytes

        public DescribeCollectionResponse.Builder addAliasesBytes​(com.google.protobuf.ByteString value)
         The aliases of this collection
         
        repeated string aliases = 9;
        Parameters:
        value - The bytes of the aliases to add.
        Returns:
        This builder for chaining.
      • setStartPositions

        public DescribeCollectionResponse.Builder setStartPositions​(int index,
                                                                    KeyDataPair value)
         The message ID/posititon when collection is created
         
        repeated .milvus.proto.common.KeyDataPair start_positions = 10;
      • addStartPositions

        public DescribeCollectionResponse.Builder addStartPositions​(int index,
                                                                    KeyDataPair value)
         The message ID/posititon when collection is created
         
        repeated .milvus.proto.common.KeyDataPair start_positions = 10;
      • clearStartPositions

        public DescribeCollectionResponse.Builder clearStartPositions()
         The message ID/posititon when collection is created
         
        repeated .milvus.proto.common.KeyDataPair start_positions = 10;
      • removeStartPositions

        public DescribeCollectionResponse.Builder removeStartPositions​(int index)
         The message ID/posititon when collection is created
         
        repeated .milvus.proto.common.KeyDataPair start_positions = 10;
      • getStartPositionsBuilder

        public KeyDataPair.Builder getStartPositionsBuilder​(int index)
         The message ID/posititon when collection is created
         
        repeated .milvus.proto.common.KeyDataPair start_positions = 10;
      • addStartPositionsBuilder

        public KeyDataPair.Builder addStartPositionsBuilder()
         The message ID/posititon when collection is created
         
        repeated .milvus.proto.common.KeyDataPair start_positions = 10;
      • addStartPositionsBuilder

        public KeyDataPair.Builder addStartPositionsBuilder​(int index)
         The message ID/posititon when collection is created
         
        repeated .milvus.proto.common.KeyDataPair start_positions = 10;
      • getStartPositionsBuilderList

        public List<KeyDataPair.Builder> getStartPositionsBuilderList()
         The message ID/posititon when collection is created
         
        repeated .milvus.proto.common.KeyDataPair start_positions = 10;
      • getConsistencyLevelValue

        public int getConsistencyLevelValue()
         The consistency level that the collection used, modification is not supported now.
         
        .milvus.proto.common.ConsistencyLevel consistency_level = 11;
        Specified by:
        getConsistencyLevelValue in interface DescribeCollectionResponseOrBuilder
        Returns:
        The enum numeric value on the wire for consistencyLevel.
      • setConsistencyLevelValue

        public DescribeCollectionResponse.Builder setConsistencyLevelValue​(int value)
         The consistency level that the collection used, modification is not supported now.
         
        .milvus.proto.common.ConsistencyLevel consistency_level = 11;
        Parameters:
        value - The enum numeric value on the wire for consistencyLevel to set.
        Returns:
        This builder for chaining.
      • setConsistencyLevel

        public DescribeCollectionResponse.Builder setConsistencyLevel​(ConsistencyLevel value)
         The consistency level that the collection used, modification is not supported now.
         
        .milvus.proto.common.ConsistencyLevel consistency_level = 11;
        Parameters:
        value - The consistencyLevel to set.
        Returns:
        This builder for chaining.
      • clearConsistencyLevel

        public DescribeCollectionResponse.Builder clearConsistencyLevel()
         The consistency level that the collection used, modification is not supported now.
         
        .milvus.proto.common.ConsistencyLevel consistency_level = 11;
        Returns:
        This builder for chaining.
      • setCollectionName

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

        public DescribeCollectionResponse.Builder clearCollectionName()
         The collection name
         
        string collection_name = 12;
        Returns:
        This builder for chaining.
      • setCollectionNameBytes

        public DescribeCollectionResponse.Builder setCollectionNameBytes​(com.google.protobuf.ByteString value)
         The collection name
         
        string collection_name = 12;
        Parameters:
        value - The bytes for collectionName to set.
        Returns:
        This builder for chaining.
      • getPropertiesBuilder

        public KeyValuePair.Builder getPropertiesBuilder​(int index)
        repeated .milvus.proto.common.KeyValuePair properties = 13;
      • addPropertiesBuilder

        public KeyValuePair.Builder addPropertiesBuilder()
        repeated .milvus.proto.common.KeyValuePair properties = 13;
      • addPropertiesBuilder

        public KeyValuePair.Builder addPropertiesBuilder​(int index)
        repeated .milvus.proto.common.KeyValuePair properties = 13;
      • getPropertiesBuilderList

        public List<KeyValuePair.Builder> getPropertiesBuilderList()
        repeated .milvus.proto.common.KeyValuePair properties = 13;
      • setDbNameBytes

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

        public DescribeCollectionResponse.Builder setNumPartitions​(long value)
        int64 num_partitions = 15;
        Parameters:
        value - The numPartitions to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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