All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.milvus.grpc.DescribeCollectionResponse Maven / Gradle / Ivy

There is a newer version: 2.4.8
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: milvus.proto

package io.milvus.grpc;

/**
 * 
 **
 * DescribeCollection Response
 * 
* * Protobuf type {@code milvus.proto.milvus.DescribeCollectionResponse} */ public final class DescribeCollectionResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:milvus.proto.milvus.DescribeCollectionResponse) DescribeCollectionResponseOrBuilder { private static final long serialVersionUID = 0L; // Use DescribeCollectionResponse.newBuilder() to construct. private DescribeCollectionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DescribeCollectionResponse() { virtualChannelNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); physicalChannelNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); aliases_ = com.google.protobuf.LazyStringArrayList.emptyList(); startPositions_ = java.util.Collections.emptyList(); consistencyLevel_ = 0; collectionName_ = ""; properties_ = java.util.Collections.emptyList(); dbName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DescribeCollectionResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_DescribeCollectionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_DescribeCollectionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.milvus.grpc.DescribeCollectionResponse.class, io.milvus.grpc.DescribeCollectionResponse.Builder.class); } private int bitField0_; public static final int STATUS_FIELD_NUMBER = 1; private io.milvus.grpc.Status status_; /** *
   * Contain error_code and reason
   * 
* * .milvus.proto.common.Status status = 1; * @return Whether the status field is set. */ @java.lang.Override public boolean hasStatus() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Contain error_code and reason
   * 
* * .milvus.proto.common.Status status = 1; * @return The status. */ @java.lang.Override public io.milvus.grpc.Status getStatus() { return status_ == null ? io.milvus.grpc.Status.getDefaultInstance() : status_; } /** *
   * Contain error_code and reason
   * 
* * .milvus.proto.common.Status status = 1; */ @java.lang.Override public io.milvus.grpc.StatusOrBuilder getStatusOrBuilder() { return status_ == null ? io.milvus.grpc.Status.getDefaultInstance() : status_; } public static final int SCHEMA_FIELD_NUMBER = 2; private io.milvus.grpc.CollectionSchema schema_; /** *
   * The schema param when you created collection.
   * 
* * .milvus.proto.schema.CollectionSchema schema = 2; * @return Whether the schema field is set. */ @java.lang.Override public boolean hasSchema() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * The schema param when you created collection.
   * 
* * .milvus.proto.schema.CollectionSchema schema = 2; * @return The schema. */ @java.lang.Override public io.milvus.grpc.CollectionSchema getSchema() { return schema_ == null ? io.milvus.grpc.CollectionSchema.getDefaultInstance() : schema_; } /** *
   * The schema param when you created collection.
   * 
* * .milvus.proto.schema.CollectionSchema schema = 2; */ @java.lang.Override public io.milvus.grpc.CollectionSchemaOrBuilder getSchemaOrBuilder() { return schema_ == null ? io.milvus.grpc.CollectionSchema.getDefaultInstance() : schema_; } public static final int COLLECTIONID_FIELD_NUMBER = 3; private long collectionID_ = 0L; /** *
   * The collection id
   * 
* * int64 collectionID = 3; * @return The collectionID. */ @java.lang.Override public long getCollectionID() { return collectionID_; } public static final int VIRTUAL_CHANNEL_NAMES_FIELD_NUMBER = 4; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList virtualChannelNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * System design related, users should not perceive
   * 
* * repeated string virtual_channel_names = 4; * @return A list containing the virtualChannelNames. */ public com.google.protobuf.ProtocolStringList getVirtualChannelNamesList() { return virtualChannelNames_; } /** *
   * System design related, users should not perceive
   * 
* * repeated string virtual_channel_names = 4; * @return The count of virtualChannelNames. */ public int getVirtualChannelNamesCount() { return virtualChannelNames_.size(); } /** *
   * System design related, users should not perceive
   * 
* * repeated string virtual_channel_names = 4; * @param index The index of the element to return. * @return The virtualChannelNames at the given index. */ public java.lang.String getVirtualChannelNames(int index) { return virtualChannelNames_.get(index); } /** *
   * System design related, users should not perceive
   * 
* * repeated string virtual_channel_names = 4; * @param index The index of the value to return. * @return The bytes of the virtualChannelNames at the given index. */ public com.google.protobuf.ByteString getVirtualChannelNamesBytes(int index) { return virtualChannelNames_.getByteString(index); } public static final int PHYSICAL_CHANNEL_NAMES_FIELD_NUMBER = 5; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList physicalChannelNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * System design related, users should not perceive
   * 
* * repeated string physical_channel_names = 5; * @return A list containing the physicalChannelNames. */ public com.google.protobuf.ProtocolStringList getPhysicalChannelNamesList() { return physicalChannelNames_; } /** *
   * System design related, users should not perceive
   * 
* * repeated string physical_channel_names = 5; * @return The count of physicalChannelNames. */ public int getPhysicalChannelNamesCount() { return physicalChannelNames_.size(); } /** *
   * System design related, users should not perceive
   * 
* * repeated string physical_channel_names = 5; * @param index The index of the element to return. * @return The physicalChannelNames at the given index. */ public java.lang.String getPhysicalChannelNames(int index) { return physicalChannelNames_.get(index); } /** *
   * System design related, users should not perceive
   * 
* * repeated string physical_channel_names = 5; * @param index The index of the value to return. * @return The bytes of the physicalChannelNames at the given index. */ public com.google.protobuf.ByteString getPhysicalChannelNamesBytes(int index) { return physicalChannelNames_.getByteString(index); } public static final int CREATED_TIMESTAMP_FIELD_NUMBER = 6; private long createdTimestamp_ = 0L; /** *
   * Hybrid timestamp in milvus
   * 
* * uint64 created_timestamp = 6; * @return The createdTimestamp. */ @java.lang.Override public long getCreatedTimestamp() { return createdTimestamp_; } public static final int CREATED_UTC_TIMESTAMP_FIELD_NUMBER = 7; private long createdUtcTimestamp_ = 0L; /** *
   * The utc timestamp calculated by created_timestamp
   * 
* * uint64 created_utc_timestamp = 7; * @return The createdUtcTimestamp. */ @java.lang.Override public long getCreatedUtcTimestamp() { return createdUtcTimestamp_; } public static final int SHARDS_NUM_FIELD_NUMBER = 8; private int shardsNum_ = 0; /** *
   * The shards number you set.
   * 
* * int32 shards_num = 8; * @return The shardsNum. */ @java.lang.Override public int getShardsNum() { return shardsNum_; } public static final int ALIASES_FIELD_NUMBER = 9; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList aliases_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * The aliases of this collection
   * 
* * repeated string aliases = 9; * @return A list containing the aliases. */ public com.google.protobuf.ProtocolStringList getAliasesList() { return aliases_; } /** *
   * The aliases of this collection
   * 
* * repeated string aliases = 9; * @return The count of aliases. */ public int getAliasesCount() { return aliases_.size(); } /** *
   * The aliases of this collection
   * 
* * repeated string aliases = 9; * @param index The index of the element to return. * @return The aliases at the given index. */ public java.lang.String getAliases(int index) { return aliases_.get(index); } /** *
   * The aliases of this collection
   * 
* * repeated string aliases = 9; * @param index The index of the value to return. * @return The bytes of the aliases at the given index. */ public com.google.protobuf.ByteString getAliasesBytes(int index) { return aliases_.getByteString(index); } public static final int START_POSITIONS_FIELD_NUMBER = 10; @SuppressWarnings("serial") private java.util.List startPositions_; /** *
   * The message ID/posititon when collection is created
   * 
* * repeated .milvus.proto.common.KeyDataPair start_positions = 10; */ @java.lang.Override public java.util.List getStartPositionsList() { return startPositions_; } /** *
   * The message ID/posititon when collection is created
   * 
* * repeated .milvus.proto.common.KeyDataPair start_positions = 10; */ @java.lang.Override public java.util.List getStartPositionsOrBuilderList() { return startPositions_; } /** *
   * The message ID/posititon when collection is created
   * 
* * repeated .milvus.proto.common.KeyDataPair start_positions = 10; */ @java.lang.Override public int getStartPositionsCount() { return startPositions_.size(); } /** *
   * The message ID/posititon when collection is created
   * 
* * repeated .milvus.proto.common.KeyDataPair start_positions = 10; */ @java.lang.Override public io.milvus.grpc.KeyDataPair getStartPositions(int index) { return startPositions_.get(index); } /** *
   * The message ID/posititon when collection is created
   * 
* * repeated .milvus.proto.common.KeyDataPair start_positions = 10; */ @java.lang.Override public io.milvus.grpc.KeyDataPairOrBuilder getStartPositionsOrBuilder( int index) { return startPositions_.get(index); } public static final int CONSISTENCY_LEVEL_FIELD_NUMBER = 11; private int consistencyLevel_ = 0; /** *
   * The consistency level that the collection used, modification is not supported now.
   * 
* * .milvus.proto.common.ConsistencyLevel consistency_level = 11; * @return The enum numeric value on the wire for consistencyLevel. */ @java.lang.Override public int getConsistencyLevelValue() { return consistencyLevel_; } /** *
   * The consistency level that the collection used, modification is not supported now.
   * 
* * .milvus.proto.common.ConsistencyLevel consistency_level = 11; * @return The consistencyLevel. */ @java.lang.Override public io.milvus.grpc.ConsistencyLevel getConsistencyLevel() { io.milvus.grpc.ConsistencyLevel result = io.milvus.grpc.ConsistencyLevel.forNumber(consistencyLevel_); return result == null ? io.milvus.grpc.ConsistencyLevel.UNRECOGNIZED : result; } public static final int COLLECTION_NAME_FIELD_NUMBER = 12; @SuppressWarnings("serial") private volatile java.lang.Object collectionName_ = ""; /** *
   * The collection name
   * 
* * string collection_name = 12; * @return The collectionName. */ @java.lang.Override public java.lang.String getCollectionName() { java.lang.Object ref = collectionName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collectionName_ = s; return s; } } /** *
   * The collection name
   * 
* * string collection_name = 12; * @return The bytes for collectionName. */ @java.lang.Override public com.google.protobuf.ByteString getCollectionNameBytes() { java.lang.Object ref = collectionName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); collectionName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PROPERTIES_FIELD_NUMBER = 13; @SuppressWarnings("serial") private java.util.List properties_; /** * repeated .milvus.proto.common.KeyValuePair properties = 13; */ @java.lang.Override public java.util.List getPropertiesList() { return properties_; } /** * repeated .milvus.proto.common.KeyValuePair properties = 13; */ @java.lang.Override public java.util.List getPropertiesOrBuilderList() { return properties_; } /** * repeated .milvus.proto.common.KeyValuePair properties = 13; */ @java.lang.Override public int getPropertiesCount() { return properties_.size(); } /** * repeated .milvus.proto.common.KeyValuePair properties = 13; */ @java.lang.Override public io.milvus.grpc.KeyValuePair getProperties(int index) { return properties_.get(index); } /** * repeated .milvus.proto.common.KeyValuePair properties = 13; */ @java.lang.Override public io.milvus.grpc.KeyValuePairOrBuilder getPropertiesOrBuilder( int index) { return properties_.get(index); } public static final int DB_NAME_FIELD_NUMBER = 14; @SuppressWarnings("serial") private volatile java.lang.Object dbName_ = ""; /** * string db_name = 14; * @return The dbName. */ @java.lang.Override public java.lang.String getDbName() { java.lang.Object ref = dbName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dbName_ = s; return s; } } /** * string db_name = 14; * @return The bytes for dbName. */ @java.lang.Override public com.google.protobuf.ByteString getDbNameBytes() { java.lang.Object ref = dbName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dbName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NUM_PARTITIONS_FIELD_NUMBER = 15; private long numPartitions_ = 0L; /** * int64 num_partitions = 15; * @return The numPartitions. */ @java.lang.Override public long getNumPartitions() { return numPartitions_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getStatus()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getSchema()); } if (collectionID_ != 0L) { output.writeInt64(3, collectionID_); } for (int i = 0; i < virtualChannelNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, virtualChannelNames_.getRaw(i)); } for (int i = 0; i < physicalChannelNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, physicalChannelNames_.getRaw(i)); } if (createdTimestamp_ != 0L) { output.writeUInt64(6, createdTimestamp_); } if (createdUtcTimestamp_ != 0L) { output.writeUInt64(7, createdUtcTimestamp_); } if (shardsNum_ != 0) { output.writeInt32(8, shardsNum_); } for (int i = 0; i < aliases_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, aliases_.getRaw(i)); } for (int i = 0; i < startPositions_.size(); i++) { output.writeMessage(10, startPositions_.get(i)); } if (consistencyLevel_ != io.milvus.grpc.ConsistencyLevel.Strong.getNumber()) { output.writeEnum(11, consistencyLevel_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collectionName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, collectionName_); } for (int i = 0; i < properties_.size(); i++) { output.writeMessage(13, properties_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, dbName_); } if (numPartitions_ != 0L) { output.writeInt64(15, numPartitions_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getStatus()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getSchema()); } if (collectionID_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, collectionID_); } { int dataSize = 0; for (int i = 0; i < virtualChannelNames_.size(); i++) { dataSize += computeStringSizeNoTag(virtualChannelNames_.getRaw(i)); } size += dataSize; size += 1 * getVirtualChannelNamesList().size(); } { int dataSize = 0; for (int i = 0; i < physicalChannelNames_.size(); i++) { dataSize += computeStringSizeNoTag(physicalChannelNames_.getRaw(i)); } size += dataSize; size += 1 * getPhysicalChannelNamesList().size(); } if (createdTimestamp_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, createdTimestamp_); } if (createdUtcTimestamp_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(7, createdUtcTimestamp_); } if (shardsNum_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(8, shardsNum_); } { int dataSize = 0; for (int i = 0; i < aliases_.size(); i++) { dataSize += computeStringSizeNoTag(aliases_.getRaw(i)); } size += dataSize; size += 1 * getAliasesList().size(); } for (int i = 0; i < startPositions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, startPositions_.get(i)); } if (consistencyLevel_ != io.milvus.grpc.ConsistencyLevel.Strong.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(11, consistencyLevel_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collectionName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, collectionName_); } for (int i = 0; i < properties_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, properties_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, dbName_); } if (numPartitions_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(15, numPartitions_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.milvus.grpc.DescribeCollectionResponse)) { return super.equals(obj); } io.milvus.grpc.DescribeCollectionResponse other = (io.milvus.grpc.DescribeCollectionResponse) obj; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { if (!getStatus() .equals(other.getStatus())) return false; } if (hasSchema() != other.hasSchema()) return false; if (hasSchema()) { if (!getSchema() .equals(other.getSchema())) return false; } if (getCollectionID() != other.getCollectionID()) return false; if (!getVirtualChannelNamesList() .equals(other.getVirtualChannelNamesList())) return false; if (!getPhysicalChannelNamesList() .equals(other.getPhysicalChannelNamesList())) return false; if (getCreatedTimestamp() != other.getCreatedTimestamp()) return false; if (getCreatedUtcTimestamp() != other.getCreatedUtcTimestamp()) return false; if (getShardsNum() != other.getShardsNum()) return false; if (!getAliasesList() .equals(other.getAliasesList())) return false; if (!getStartPositionsList() .equals(other.getStartPositionsList())) return false; if (consistencyLevel_ != other.consistencyLevel_) return false; if (!getCollectionName() .equals(other.getCollectionName())) return false; if (!getPropertiesList() .equals(other.getPropertiesList())) return false; if (!getDbName() .equals(other.getDbName())) return false; if (getNumPartitions() != other.getNumPartitions()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } if (hasSchema()) { hash = (37 * hash) + SCHEMA_FIELD_NUMBER; hash = (53 * hash) + getSchema().hashCode(); } hash = (37 * hash) + COLLECTIONID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCollectionID()); if (getVirtualChannelNamesCount() > 0) { hash = (37 * hash) + VIRTUAL_CHANNEL_NAMES_FIELD_NUMBER; hash = (53 * hash) + getVirtualChannelNamesList().hashCode(); } if (getPhysicalChannelNamesCount() > 0) { hash = (37 * hash) + PHYSICAL_CHANNEL_NAMES_FIELD_NUMBER; hash = (53 * hash) + getPhysicalChannelNamesList().hashCode(); } hash = (37 * hash) + CREATED_TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCreatedTimestamp()); hash = (37 * hash) + CREATED_UTC_TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCreatedUtcTimestamp()); hash = (37 * hash) + SHARDS_NUM_FIELD_NUMBER; hash = (53 * hash) + getShardsNum(); if (getAliasesCount() > 0) { hash = (37 * hash) + ALIASES_FIELD_NUMBER; hash = (53 * hash) + getAliasesList().hashCode(); } if (getStartPositionsCount() > 0) { hash = (37 * hash) + START_POSITIONS_FIELD_NUMBER; hash = (53 * hash) + getStartPositionsList().hashCode(); } hash = (37 * hash) + CONSISTENCY_LEVEL_FIELD_NUMBER; hash = (53 * hash) + consistencyLevel_; hash = (37 * hash) + COLLECTION_NAME_FIELD_NUMBER; hash = (53 * hash) + getCollectionName().hashCode(); if (getPropertiesCount() > 0) { hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + getPropertiesList().hashCode(); } hash = (37 * hash) + DB_NAME_FIELD_NUMBER; hash = (53 * hash) + getDbName().hashCode(); hash = (37 * hash) + NUM_PARTITIONS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNumPartitions()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.milvus.grpc.DescribeCollectionResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.milvus.grpc.DescribeCollectionResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.milvus.grpc.DescribeCollectionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.milvus.grpc.DescribeCollectionResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.milvus.grpc.DescribeCollectionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.milvus.grpc.DescribeCollectionResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.milvus.grpc.DescribeCollectionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.milvus.grpc.DescribeCollectionResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.milvus.grpc.DescribeCollectionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.milvus.grpc.DescribeCollectionResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.milvus.grpc.DescribeCollectionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.milvus.grpc.DescribeCollectionResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.milvus.grpc.DescribeCollectionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   **
   * DescribeCollection Response
   * 
* * Protobuf type {@code milvus.proto.milvus.DescribeCollectionResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:milvus.proto.milvus.DescribeCollectionResponse) io.milvus.grpc.DescribeCollectionResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_DescribeCollectionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_DescribeCollectionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.milvus.grpc.DescribeCollectionResponse.class, io.milvus.grpc.DescribeCollectionResponse.Builder.class); } // Construct using io.milvus.grpc.DescribeCollectionResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getStatusFieldBuilder(); getSchemaFieldBuilder(); getStartPositionsFieldBuilder(); getPropertiesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; status_ = null; if (statusBuilder_ != null) { statusBuilder_.dispose(); statusBuilder_ = null; } schema_ = null; if (schemaBuilder_ != null) { schemaBuilder_.dispose(); schemaBuilder_ = null; } collectionID_ = 0L; virtualChannelNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); physicalChannelNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); createdTimestamp_ = 0L; createdUtcTimestamp_ = 0L; shardsNum_ = 0; aliases_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (startPositionsBuilder_ == null) { startPositions_ = java.util.Collections.emptyList(); } else { startPositions_ = null; startPositionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); consistencyLevel_ = 0; collectionName_ = ""; if (propertiesBuilder_ == null) { properties_ = java.util.Collections.emptyList(); } else { properties_ = null; propertiesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00001000); dbName_ = ""; numPartitions_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_DescribeCollectionResponse_descriptor; } @java.lang.Override public io.milvus.grpc.DescribeCollectionResponse getDefaultInstanceForType() { return io.milvus.grpc.DescribeCollectionResponse.getDefaultInstance(); } @java.lang.Override public io.milvus.grpc.DescribeCollectionResponse build() { io.milvus.grpc.DescribeCollectionResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.milvus.grpc.DescribeCollectionResponse buildPartial() { io.milvus.grpc.DescribeCollectionResponse result = new io.milvus.grpc.DescribeCollectionResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.milvus.grpc.DescribeCollectionResponse result) { if (startPositionsBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0)) { startPositions_ = java.util.Collections.unmodifiableList(startPositions_); bitField0_ = (bitField0_ & ~0x00000200); } result.startPositions_ = startPositions_; } else { result.startPositions_ = startPositionsBuilder_.build(); } if (propertiesBuilder_ == null) { if (((bitField0_ & 0x00001000) != 0)) { properties_ = java.util.Collections.unmodifiableList(properties_); bitField0_ = (bitField0_ & ~0x00001000); } result.properties_ = properties_; } else { result.properties_ = propertiesBuilder_.build(); } } private void buildPartial0(io.milvus.grpc.DescribeCollectionResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.collectionID_ = collectionID_; } if (((from_bitField0_ & 0x00000008) != 0)) { virtualChannelNames_.makeImmutable(); result.virtualChannelNames_ = virtualChannelNames_; } if (((from_bitField0_ & 0x00000010) != 0)) { physicalChannelNames_.makeImmutable(); result.physicalChannelNames_ = physicalChannelNames_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.createdTimestamp_ = createdTimestamp_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.createdUtcTimestamp_ = createdUtcTimestamp_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.shardsNum_ = shardsNum_; } if (((from_bitField0_ & 0x00000100) != 0)) { aliases_.makeImmutable(); result.aliases_ = aliases_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.consistencyLevel_ = consistencyLevel_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.collectionName_ = collectionName_; } if (((from_bitField0_ & 0x00002000) != 0)) { result.dbName_ = dbName_; } if (((from_bitField0_ & 0x00004000) != 0)) { result.numPartitions_ = numPartitions_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.milvus.grpc.DescribeCollectionResponse) { return mergeFrom((io.milvus.grpc.DescribeCollectionResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.milvus.grpc.DescribeCollectionResponse other) { if (other == io.milvus.grpc.DescribeCollectionResponse.getDefaultInstance()) return this; if (other.hasStatus()) { mergeStatus(other.getStatus()); } if (other.hasSchema()) { mergeSchema(other.getSchema()); } if (other.getCollectionID() != 0L) { setCollectionID(other.getCollectionID()); } if (!other.virtualChannelNames_.isEmpty()) { if (virtualChannelNames_.isEmpty()) { virtualChannelNames_ = other.virtualChannelNames_; bitField0_ |= 0x00000008; } else { ensureVirtualChannelNamesIsMutable(); virtualChannelNames_.addAll(other.virtualChannelNames_); } onChanged(); } if (!other.physicalChannelNames_.isEmpty()) { if (physicalChannelNames_.isEmpty()) { physicalChannelNames_ = other.physicalChannelNames_; bitField0_ |= 0x00000010; } else { ensurePhysicalChannelNamesIsMutable(); physicalChannelNames_.addAll(other.physicalChannelNames_); } onChanged(); } if (other.getCreatedTimestamp() != 0L) { setCreatedTimestamp(other.getCreatedTimestamp()); } if (other.getCreatedUtcTimestamp() != 0L) { setCreatedUtcTimestamp(other.getCreatedUtcTimestamp()); } if (other.getShardsNum() != 0) { setShardsNum(other.getShardsNum()); } if (!other.aliases_.isEmpty()) { if (aliases_.isEmpty()) { aliases_ = other.aliases_; bitField0_ |= 0x00000100; } else { ensureAliasesIsMutable(); aliases_.addAll(other.aliases_); } onChanged(); } if (startPositionsBuilder_ == null) { if (!other.startPositions_.isEmpty()) { if (startPositions_.isEmpty()) { startPositions_ = other.startPositions_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureStartPositionsIsMutable(); startPositions_.addAll(other.startPositions_); } onChanged(); } } else { if (!other.startPositions_.isEmpty()) { if (startPositionsBuilder_.isEmpty()) { startPositionsBuilder_.dispose(); startPositionsBuilder_ = null; startPositions_ = other.startPositions_; bitField0_ = (bitField0_ & ~0x00000200); startPositionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getStartPositionsFieldBuilder() : null; } else { startPositionsBuilder_.addAllMessages(other.startPositions_); } } } if (other.consistencyLevel_ != 0) { setConsistencyLevelValue(other.getConsistencyLevelValue()); } if (!other.getCollectionName().isEmpty()) { collectionName_ = other.collectionName_; bitField0_ |= 0x00000800; onChanged(); } if (propertiesBuilder_ == null) { if (!other.properties_.isEmpty()) { if (properties_.isEmpty()) { properties_ = other.properties_; bitField0_ = (bitField0_ & ~0x00001000); } else { ensurePropertiesIsMutable(); properties_.addAll(other.properties_); } onChanged(); } } else { if (!other.properties_.isEmpty()) { if (propertiesBuilder_.isEmpty()) { propertiesBuilder_.dispose(); propertiesBuilder_ = null; properties_ = other.properties_; bitField0_ = (bitField0_ & ~0x00001000); propertiesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPropertiesFieldBuilder() : null; } else { propertiesBuilder_.addAllMessages(other.properties_); } } } if (!other.getDbName().isEmpty()) { dbName_ = other.dbName_; bitField0_ |= 0x00002000; onChanged(); } if (other.getNumPartitions() != 0L) { setNumPartitions(other.getNumPartitions()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getStatusFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getSchemaFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 24: { collectionID_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { java.lang.String s = input.readStringRequireUtf8(); ensureVirtualChannelNamesIsMutable(); virtualChannelNames_.add(s); break; } // case 34 case 42: { java.lang.String s = input.readStringRequireUtf8(); ensurePhysicalChannelNamesIsMutable(); physicalChannelNames_.add(s); break; } // case 42 case 48: { createdTimestamp_ = input.readUInt64(); bitField0_ |= 0x00000020; break; } // case 48 case 56: { createdUtcTimestamp_ = input.readUInt64(); bitField0_ |= 0x00000040; break; } // case 56 case 64: { shardsNum_ = input.readInt32(); bitField0_ |= 0x00000080; break; } // case 64 case 74: { java.lang.String s = input.readStringRequireUtf8(); ensureAliasesIsMutable(); aliases_.add(s); break; } // case 74 case 82: { io.milvus.grpc.KeyDataPair m = input.readMessage( io.milvus.grpc.KeyDataPair.parser(), extensionRegistry); if (startPositionsBuilder_ == null) { ensureStartPositionsIsMutable(); startPositions_.add(m); } else { startPositionsBuilder_.addMessage(m); } break; } // case 82 case 88: { consistencyLevel_ = input.readEnum(); bitField0_ |= 0x00000400; break; } // case 88 case 98: { collectionName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000800; break; } // case 98 case 106: { io.milvus.grpc.KeyValuePair m = input.readMessage( io.milvus.grpc.KeyValuePair.parser(), extensionRegistry); if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.add(m); } else { propertiesBuilder_.addMessage(m); } break; } // case 106 case 114: { dbName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00002000; break; } // case 114 case 120: { numPartitions_ = input.readInt64(); bitField0_ |= 0x00004000; break; } // case 120 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private io.milvus.grpc.Status status_; private com.google.protobuf.SingleFieldBuilderV3< io.milvus.grpc.Status, io.milvus.grpc.Status.Builder, io.milvus.grpc.StatusOrBuilder> statusBuilder_; /** *
     * Contain error_code and reason
     * 
* * .milvus.proto.common.Status status = 1; * @return Whether the status field is set. */ public boolean hasStatus() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Contain error_code and reason
     * 
* * .milvus.proto.common.Status status = 1; * @return The status. */ public io.milvus.grpc.Status getStatus() { if (statusBuilder_ == null) { return status_ == null ? io.milvus.grpc.Status.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** *
     * Contain error_code and reason
     * 
* * .milvus.proto.common.Status status = 1; */ public Builder setStatus(io.milvus.grpc.Status value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } status_ = value; } else { statusBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Contain error_code and reason
     * 
* * .milvus.proto.common.Status status = 1; */ public Builder setStatus( io.milvus.grpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); } else { statusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Contain error_code and reason
     * 
* * .milvus.proto.common.Status status = 1; */ public Builder mergeStatus(io.milvus.grpc.Status value) { if (statusBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && status_ != null && status_ != io.milvus.grpc.Status.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); } else { status_ = value; } } else { statusBuilder_.mergeFrom(value); } if (status_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     * Contain error_code and reason
     * 
* * .milvus.proto.common.Status status = 1; */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000001); status_ = null; if (statusBuilder_ != null) { statusBuilder_.dispose(); statusBuilder_ = null; } onChanged(); return this; } /** *
     * Contain error_code and reason
     * 
* * .milvus.proto.common.Status status = 1; */ public io.milvus.grpc.Status.Builder getStatusBuilder() { bitField0_ |= 0x00000001; onChanged(); return getStatusFieldBuilder().getBuilder(); } /** *
     * Contain error_code and reason
     * 
* * .milvus.proto.common.Status status = 1; */ public io.milvus.grpc.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? io.milvus.grpc.Status.getDefaultInstance() : status_; } } /** *
     * Contain error_code and reason
     * 
* * .milvus.proto.common.Status status = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.milvus.grpc.Status, io.milvus.grpc.Status.Builder, io.milvus.grpc.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.milvus.grpc.Status, io.milvus.grpc.Status.Builder, io.milvus.grpc.StatusOrBuilder>( getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } private io.milvus.grpc.CollectionSchema schema_; private com.google.protobuf.SingleFieldBuilderV3< io.milvus.grpc.CollectionSchema, io.milvus.grpc.CollectionSchema.Builder, io.milvus.grpc.CollectionSchemaOrBuilder> schemaBuilder_; /** *
     * The schema param when you created collection.
     * 
* * .milvus.proto.schema.CollectionSchema schema = 2; * @return Whether the schema field is set. */ public boolean hasSchema() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The schema param when you created collection.
     * 
* * .milvus.proto.schema.CollectionSchema schema = 2; * @return The schema. */ public io.milvus.grpc.CollectionSchema getSchema() { if (schemaBuilder_ == null) { return schema_ == null ? io.milvus.grpc.CollectionSchema.getDefaultInstance() : schema_; } else { return schemaBuilder_.getMessage(); } } /** *
     * The schema param when you created collection.
     * 
* * .milvus.proto.schema.CollectionSchema schema = 2; */ public Builder setSchema(io.milvus.grpc.CollectionSchema value) { if (schemaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } schema_ = value; } else { schemaBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The schema param when you created collection.
     * 
* * .milvus.proto.schema.CollectionSchema schema = 2; */ public Builder setSchema( io.milvus.grpc.CollectionSchema.Builder builderForValue) { if (schemaBuilder_ == null) { schema_ = builderForValue.build(); } else { schemaBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The schema param when you created collection.
     * 
* * .milvus.proto.schema.CollectionSchema schema = 2; */ public Builder mergeSchema(io.milvus.grpc.CollectionSchema value) { if (schemaBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && schema_ != null && schema_ != io.milvus.grpc.CollectionSchema.getDefaultInstance()) { getSchemaBuilder().mergeFrom(value); } else { schema_ = value; } } else { schemaBuilder_.mergeFrom(value); } if (schema_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     * The schema param when you created collection.
     * 
* * .milvus.proto.schema.CollectionSchema schema = 2; */ public Builder clearSchema() { bitField0_ = (bitField0_ & ~0x00000002); schema_ = null; if (schemaBuilder_ != null) { schemaBuilder_.dispose(); schemaBuilder_ = null; } onChanged(); return this; } /** *
     * The schema param when you created collection.
     * 
* * .milvus.proto.schema.CollectionSchema schema = 2; */ public io.milvus.grpc.CollectionSchema.Builder getSchemaBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSchemaFieldBuilder().getBuilder(); } /** *
     * The schema param when you created collection.
     * 
* * .milvus.proto.schema.CollectionSchema schema = 2; */ public io.milvus.grpc.CollectionSchemaOrBuilder getSchemaOrBuilder() { if (schemaBuilder_ != null) { return schemaBuilder_.getMessageOrBuilder(); } else { return schema_ == null ? io.milvus.grpc.CollectionSchema.getDefaultInstance() : schema_; } } /** *
     * The schema param when you created collection.
     * 
* * .milvus.proto.schema.CollectionSchema schema = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.milvus.grpc.CollectionSchema, io.milvus.grpc.CollectionSchema.Builder, io.milvus.grpc.CollectionSchemaOrBuilder> getSchemaFieldBuilder() { if (schemaBuilder_ == null) { schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.milvus.grpc.CollectionSchema, io.milvus.grpc.CollectionSchema.Builder, io.milvus.grpc.CollectionSchemaOrBuilder>( getSchema(), getParentForChildren(), isClean()); schema_ = null; } return schemaBuilder_; } private long collectionID_ ; /** *
     * The collection id
     * 
* * int64 collectionID = 3; * @return The collectionID. */ @java.lang.Override public long getCollectionID() { return collectionID_; } /** *
     * The collection id
     * 
* * int64 collectionID = 3; * @param value The collectionID to set. * @return This builder for chaining. */ public Builder setCollectionID(long value) { collectionID_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The collection id
     * 
* * int64 collectionID = 3; * @return This builder for chaining. */ public Builder clearCollectionID() { bitField0_ = (bitField0_ & ~0x00000004); collectionID_ = 0L; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList virtualChannelNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureVirtualChannelNamesIsMutable() { if (!virtualChannelNames_.isModifiable()) { virtualChannelNames_ = new com.google.protobuf.LazyStringArrayList(virtualChannelNames_); } bitField0_ |= 0x00000008; } /** *
     * System design related, users should not perceive
     * 
* * repeated string virtual_channel_names = 4; * @return A list containing the virtualChannelNames. */ public com.google.protobuf.ProtocolStringList getVirtualChannelNamesList() { virtualChannelNames_.makeImmutable(); return virtualChannelNames_; } /** *
     * System design related, users should not perceive
     * 
* * repeated string virtual_channel_names = 4; * @return The count of virtualChannelNames. */ public int getVirtualChannelNamesCount() { return virtualChannelNames_.size(); } /** *
     * System design related, users should not perceive
     * 
* * repeated string virtual_channel_names = 4; * @param index The index of the element to return. * @return The virtualChannelNames at the given index. */ public java.lang.String getVirtualChannelNames(int index) { return virtualChannelNames_.get(index); } /** *
     * System design related, users should not perceive
     * 
* * repeated string virtual_channel_names = 4; * @param index The index of the value to return. * @return The bytes of the virtualChannelNames at the given index. */ public com.google.protobuf.ByteString getVirtualChannelNamesBytes(int index) { return virtualChannelNames_.getByteString(index); } /** *
     * System design related, users should not perceive
     * 
* * repeated string virtual_channel_names = 4; * @param index The index to set the value at. * @param value The virtualChannelNames to set. * @return This builder for chaining. */ public Builder setVirtualChannelNames( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureVirtualChannelNamesIsMutable(); virtualChannelNames_.set(index, value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * System design related, users should not perceive
     * 
* * repeated string virtual_channel_names = 4; * @param value The virtualChannelNames to add. * @return This builder for chaining. */ public Builder addVirtualChannelNames( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureVirtualChannelNamesIsMutable(); virtualChannelNames_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * System design related, users should not perceive
     * 
* * repeated string virtual_channel_names = 4; * @param values The virtualChannelNames to add. * @return This builder for chaining. */ public Builder addAllVirtualChannelNames( java.lang.Iterable values) { ensureVirtualChannelNamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, virtualChannelNames_); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * System design related, users should not perceive
     * 
* * repeated string virtual_channel_names = 4; * @return This builder for chaining. */ public Builder clearVirtualChannelNames() { virtualChannelNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** *
     * System design related, users should not perceive
     * 
* * repeated string virtual_channel_names = 4; * @param value The bytes of the virtualChannelNames to add. * @return This builder for chaining. */ public Builder addVirtualChannelNamesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureVirtualChannelNamesIsMutable(); virtualChannelNames_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList physicalChannelNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensurePhysicalChannelNamesIsMutable() { if (!physicalChannelNames_.isModifiable()) { physicalChannelNames_ = new com.google.protobuf.LazyStringArrayList(physicalChannelNames_); } bitField0_ |= 0x00000010; } /** *
     * System design related, users should not perceive
     * 
* * repeated string physical_channel_names = 5; * @return A list containing the physicalChannelNames. */ public com.google.protobuf.ProtocolStringList getPhysicalChannelNamesList() { physicalChannelNames_.makeImmutable(); return physicalChannelNames_; } /** *
     * System design related, users should not perceive
     * 
* * repeated string physical_channel_names = 5; * @return The count of physicalChannelNames. */ public int getPhysicalChannelNamesCount() { return physicalChannelNames_.size(); } /** *
     * System design related, users should not perceive
     * 
* * repeated string physical_channel_names = 5; * @param index The index of the element to return. * @return The physicalChannelNames at the given index. */ public java.lang.String getPhysicalChannelNames(int index) { return physicalChannelNames_.get(index); } /** *
     * System design related, users should not perceive
     * 
* * repeated string physical_channel_names = 5; * @param index The index of the value to return. * @return The bytes of the physicalChannelNames at the given index. */ public com.google.protobuf.ByteString getPhysicalChannelNamesBytes(int index) { return physicalChannelNames_.getByteString(index); } /** *
     * System design related, users should not perceive
     * 
* * repeated string physical_channel_names = 5; * @param index The index to set the value at. * @param value The physicalChannelNames to set. * @return This builder for chaining. */ public Builder setPhysicalChannelNames( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePhysicalChannelNamesIsMutable(); physicalChannelNames_.set(index, value); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * System design related, users should not perceive
     * 
* * repeated string physical_channel_names = 5; * @param value The physicalChannelNames to add. * @return This builder for chaining. */ public Builder addPhysicalChannelNames( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePhysicalChannelNamesIsMutable(); physicalChannelNames_.add(value); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * System design related, users should not perceive
     * 
* * repeated string physical_channel_names = 5; * @param values The physicalChannelNames to add. * @return This builder for chaining. */ public Builder addAllPhysicalChannelNames( java.lang.Iterable values) { ensurePhysicalChannelNamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, physicalChannelNames_); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * System design related, users should not perceive
     * 
* * repeated string physical_channel_names = 5; * @return This builder for chaining. */ public Builder clearPhysicalChannelNames() { physicalChannelNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000010);; onChanged(); return this; } /** *
     * System design related, users should not perceive
     * 
* * repeated string physical_channel_names = 5; * @param value The bytes of the physicalChannelNames to add. * @return This builder for chaining. */ public Builder addPhysicalChannelNamesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePhysicalChannelNamesIsMutable(); physicalChannelNames_.add(value); bitField0_ |= 0x00000010; onChanged(); return this; } private long createdTimestamp_ ; /** *
     * Hybrid timestamp in milvus
     * 
* * uint64 created_timestamp = 6; * @return The createdTimestamp. */ @java.lang.Override public long getCreatedTimestamp() { return createdTimestamp_; } /** *
     * Hybrid timestamp in milvus
     * 
* * uint64 created_timestamp = 6; * @param value The createdTimestamp to set. * @return This builder for chaining. */ public Builder setCreatedTimestamp(long value) { createdTimestamp_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Hybrid timestamp in milvus
     * 
* * uint64 created_timestamp = 6; * @return This builder for chaining. */ public Builder clearCreatedTimestamp() { bitField0_ = (bitField0_ & ~0x00000020); createdTimestamp_ = 0L; onChanged(); return this; } private long createdUtcTimestamp_ ; /** *
     * The utc timestamp calculated by created_timestamp
     * 
* * uint64 created_utc_timestamp = 7; * @return The createdUtcTimestamp. */ @java.lang.Override public long getCreatedUtcTimestamp() { return createdUtcTimestamp_; } /** *
     * The utc timestamp calculated by created_timestamp
     * 
* * uint64 created_utc_timestamp = 7; * @param value The createdUtcTimestamp to set. * @return This builder for chaining. */ public Builder setCreatedUtcTimestamp(long value) { createdUtcTimestamp_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * The utc timestamp calculated by created_timestamp
     * 
* * uint64 created_utc_timestamp = 7; * @return This builder for chaining. */ public Builder clearCreatedUtcTimestamp() { bitField0_ = (bitField0_ & ~0x00000040); createdUtcTimestamp_ = 0L; onChanged(); return this; } private int shardsNum_ ; /** *
     * The shards number you set.
     * 
* * int32 shards_num = 8; * @return The shardsNum. */ @java.lang.Override public int getShardsNum() { return shardsNum_; } /** *
     * The shards number you set.
     * 
* * int32 shards_num = 8; * @param value The shardsNum to set. * @return This builder for chaining. */ public Builder setShardsNum(int value) { shardsNum_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * The shards number you set.
     * 
* * int32 shards_num = 8; * @return This builder for chaining. */ public Builder clearShardsNum() { bitField0_ = (bitField0_ & ~0x00000080); shardsNum_ = 0; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList aliases_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureAliasesIsMutable() { if (!aliases_.isModifiable()) { aliases_ = new com.google.protobuf.LazyStringArrayList(aliases_); } bitField0_ |= 0x00000100; } /** *
     * The aliases of this collection
     * 
* * repeated string aliases = 9; * @return A list containing the aliases. */ public com.google.protobuf.ProtocolStringList getAliasesList() { aliases_.makeImmutable(); return aliases_; } /** *
     * The aliases of this collection
     * 
* * repeated string aliases = 9; * @return The count of aliases. */ public int getAliasesCount() { return aliases_.size(); } /** *
     * The aliases of this collection
     * 
* * repeated string aliases = 9; * @param index The index of the element to return. * @return The aliases at the given index. */ public java.lang.String getAliases(int index) { return aliases_.get(index); } /** *
     * The aliases of this collection
     * 
* * repeated string aliases = 9; * @param index The index of the value to return. * @return The bytes of the aliases at the given index. */ public com.google.protobuf.ByteString getAliasesBytes(int index) { return aliases_.getByteString(index); } /** *
     * The aliases of this collection
     * 
* * repeated string aliases = 9; * @param index The index to set the value at. * @param value The aliases to set. * @return This builder for chaining. */ public Builder setAliases( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAliasesIsMutable(); aliases_.set(index, value); bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     * The aliases of this collection
     * 
* * repeated string aliases = 9; * @param value The aliases to add. * @return This builder for chaining. */ public Builder addAliases( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAliasesIsMutable(); aliases_.add(value); bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     * The aliases of this collection
     * 
* * repeated string aliases = 9; * @param values The aliases to add. * @return This builder for chaining. */ public Builder addAllAliases( java.lang.Iterable values) { ensureAliasesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, aliases_); bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     * The aliases of this collection
     * 
* * repeated string aliases = 9; * @return This builder for chaining. */ public Builder clearAliases() { aliases_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000100);; onChanged(); return this; } /** *
     * The aliases of this collection
     * 
* * repeated string aliases = 9; * @param value The bytes of the aliases to add. * @return This builder for chaining. */ public Builder addAliasesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAliasesIsMutable(); aliases_.add(value); bitField0_ |= 0x00000100; onChanged(); return this; } private java.util.List startPositions_ = java.util.Collections.emptyList(); private void ensureStartPositionsIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { startPositions_ = new java.util.ArrayList(startPositions_); bitField0_ |= 0x00000200; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.milvus.grpc.KeyDataPair, io.milvus.grpc.KeyDataPair.Builder, io.milvus.grpc.KeyDataPairOrBuilder> startPositionsBuilder_; /** *
     * The message ID/posititon when collection is created
     * 
* * repeated .milvus.proto.common.KeyDataPair start_positions = 10; */ public java.util.List getStartPositionsList() { if (startPositionsBuilder_ == null) { return java.util.Collections.unmodifiableList(startPositions_); } else { return startPositionsBuilder_.getMessageList(); } } /** *
     * The message ID/posititon when collection is created
     * 
* * repeated .milvus.proto.common.KeyDataPair start_positions = 10; */ public int getStartPositionsCount() { if (startPositionsBuilder_ == null) { return startPositions_.size(); } else { return startPositionsBuilder_.getCount(); } } /** *
     * The message ID/posititon when collection is created
     * 
* * repeated .milvus.proto.common.KeyDataPair start_positions = 10; */ public io.milvus.grpc.KeyDataPair getStartPositions(int index) { if (startPositionsBuilder_ == null) { return startPositions_.get(index); } else { return startPositionsBuilder_.getMessage(index); } } /** *
     * The message ID/posititon when collection is created
     * 
* * repeated .milvus.proto.common.KeyDataPair start_positions = 10; */ public Builder setStartPositions( int index, io.milvus.grpc.KeyDataPair value) { if (startPositionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStartPositionsIsMutable(); startPositions_.set(index, value); onChanged(); } else { startPositionsBuilder_.setMessage(index, value); } return this; } /** *
     * The message ID/posititon when collection is created
     * 
* * repeated .milvus.proto.common.KeyDataPair start_positions = 10; */ public Builder setStartPositions( int index, io.milvus.grpc.KeyDataPair.Builder builderForValue) { if (startPositionsBuilder_ == null) { ensureStartPositionsIsMutable(); startPositions_.set(index, builderForValue.build()); onChanged(); } else { startPositionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * The message ID/posititon when collection is created
     * 
* * repeated .milvus.proto.common.KeyDataPair start_positions = 10; */ public Builder addStartPositions(io.milvus.grpc.KeyDataPair value) { if (startPositionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStartPositionsIsMutable(); startPositions_.add(value); onChanged(); } else { startPositionsBuilder_.addMessage(value); } return this; } /** *
     * The message ID/posititon when collection is created
     * 
* * repeated .milvus.proto.common.KeyDataPair start_positions = 10; */ public Builder addStartPositions( int index, io.milvus.grpc.KeyDataPair value) { if (startPositionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStartPositionsIsMutable(); startPositions_.add(index, value); onChanged(); } else { startPositionsBuilder_.addMessage(index, value); } return this; } /** *
     * The message ID/posititon when collection is created
     * 
* * repeated .milvus.proto.common.KeyDataPair start_positions = 10; */ public Builder addStartPositions( io.milvus.grpc.KeyDataPair.Builder builderForValue) { if (startPositionsBuilder_ == null) { ensureStartPositionsIsMutable(); startPositions_.add(builderForValue.build()); onChanged(); } else { startPositionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * The message ID/posititon when collection is created
     * 
* * repeated .milvus.proto.common.KeyDataPair start_positions = 10; */ public Builder addStartPositions( int index, io.milvus.grpc.KeyDataPair.Builder builderForValue) { if (startPositionsBuilder_ == null) { ensureStartPositionsIsMutable(); startPositions_.add(index, builderForValue.build()); onChanged(); } else { startPositionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * The message ID/posititon when collection is created
     * 
* * repeated .milvus.proto.common.KeyDataPair start_positions = 10; */ public Builder addAllStartPositions( java.lang.Iterable values) { if (startPositionsBuilder_ == null) { ensureStartPositionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, startPositions_); onChanged(); } else { startPositionsBuilder_.addAllMessages(values); } return this; } /** *
     * The message ID/posititon when collection is created
     * 
* * repeated .milvus.proto.common.KeyDataPair start_positions = 10; */ public Builder clearStartPositions() { if (startPositionsBuilder_ == null) { startPositions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { startPositionsBuilder_.clear(); } return this; } /** *
     * The message ID/posititon when collection is created
     * 
* * repeated .milvus.proto.common.KeyDataPair start_positions = 10; */ public Builder removeStartPositions(int index) { if (startPositionsBuilder_ == null) { ensureStartPositionsIsMutable(); startPositions_.remove(index); onChanged(); } else { startPositionsBuilder_.remove(index); } return this; } /** *
     * The message ID/posititon when collection is created
     * 
* * repeated .milvus.proto.common.KeyDataPair start_positions = 10; */ public io.milvus.grpc.KeyDataPair.Builder getStartPositionsBuilder( int index) { return getStartPositionsFieldBuilder().getBuilder(index); } /** *
     * The message ID/posititon when collection is created
     * 
* * repeated .milvus.proto.common.KeyDataPair start_positions = 10; */ public io.milvus.grpc.KeyDataPairOrBuilder getStartPositionsOrBuilder( int index) { if (startPositionsBuilder_ == null) { return startPositions_.get(index); } else { return startPositionsBuilder_.getMessageOrBuilder(index); } } /** *
     * The message ID/posititon when collection is created
     * 
* * repeated .milvus.proto.common.KeyDataPair start_positions = 10; */ public java.util.List getStartPositionsOrBuilderList() { if (startPositionsBuilder_ != null) { return startPositionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(startPositions_); } } /** *
     * The message ID/posititon when collection is created
     * 
* * repeated .milvus.proto.common.KeyDataPair start_positions = 10; */ public io.milvus.grpc.KeyDataPair.Builder addStartPositionsBuilder() { return getStartPositionsFieldBuilder().addBuilder( io.milvus.grpc.KeyDataPair.getDefaultInstance()); } /** *
     * The message ID/posititon when collection is created
     * 
* * repeated .milvus.proto.common.KeyDataPair start_positions = 10; */ public io.milvus.grpc.KeyDataPair.Builder addStartPositionsBuilder( int index) { return getStartPositionsFieldBuilder().addBuilder( index, io.milvus.grpc.KeyDataPair.getDefaultInstance()); } /** *
     * The message ID/posititon when collection is created
     * 
* * repeated .milvus.proto.common.KeyDataPair start_positions = 10; */ public java.util.List getStartPositionsBuilderList() { return getStartPositionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.milvus.grpc.KeyDataPair, io.milvus.grpc.KeyDataPair.Builder, io.milvus.grpc.KeyDataPairOrBuilder> getStartPositionsFieldBuilder() { if (startPositionsBuilder_ == null) { startPositionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.milvus.grpc.KeyDataPair, io.milvus.grpc.KeyDataPair.Builder, io.milvus.grpc.KeyDataPairOrBuilder>( startPositions_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); startPositions_ = null; } return startPositionsBuilder_; } private int consistencyLevel_ = 0; /** *
     * The consistency level that the collection used, modification is not supported now.
     * 
* * .milvus.proto.common.ConsistencyLevel consistency_level = 11; * @return The enum numeric value on the wire for consistencyLevel. */ @java.lang.Override public int getConsistencyLevelValue() { return consistencyLevel_; } /** *
     * The consistency level that the collection used, modification is not supported now.
     * 
* * .milvus.proto.common.ConsistencyLevel consistency_level = 11; * @param value The enum numeric value on the wire for consistencyLevel to set. * @return This builder for chaining. */ public Builder setConsistencyLevelValue(int value) { consistencyLevel_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** *
     * The consistency level that the collection used, modification is not supported now.
     * 
* * .milvus.proto.common.ConsistencyLevel consistency_level = 11; * @return The consistencyLevel. */ @java.lang.Override public io.milvus.grpc.ConsistencyLevel getConsistencyLevel() { io.milvus.grpc.ConsistencyLevel result = io.milvus.grpc.ConsistencyLevel.forNumber(consistencyLevel_); return result == null ? io.milvus.grpc.ConsistencyLevel.UNRECOGNIZED : result; } /** *
     * The consistency level that the collection used, modification is not supported now.
     * 
* * .milvus.proto.common.ConsistencyLevel consistency_level = 11; * @param value The consistencyLevel to set. * @return This builder for chaining. */ public Builder setConsistencyLevel(io.milvus.grpc.ConsistencyLevel value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; consistencyLevel_ = value.getNumber(); onChanged(); return this; } /** *
     * The consistency level that the collection used, modification is not supported now.
     * 
* * .milvus.proto.common.ConsistencyLevel consistency_level = 11; * @return This builder for chaining. */ public Builder clearConsistencyLevel() { bitField0_ = (bitField0_ & ~0x00000400); consistencyLevel_ = 0; onChanged(); return this; } private java.lang.Object collectionName_ = ""; /** *
     * The collection name
     * 
* * string collection_name = 12; * @return The collectionName. */ public java.lang.String getCollectionName() { java.lang.Object ref = collectionName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collectionName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The collection name
     * 
* * string collection_name = 12; * @return The bytes for collectionName. */ public com.google.protobuf.ByteString getCollectionNameBytes() { java.lang.Object ref = collectionName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); collectionName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The collection name
     * 
* * string collection_name = 12; * @param value The collectionName to set. * @return This builder for chaining. */ public Builder setCollectionName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } collectionName_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** *
     * The collection name
     * 
* * string collection_name = 12; * @return This builder for chaining. */ public Builder clearCollectionName() { collectionName_ = getDefaultInstance().getCollectionName(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } /** *
     * The collection name
     * 
* * string collection_name = 12; * @param value The bytes for collectionName to set. * @return This builder for chaining. */ public Builder setCollectionNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); collectionName_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } private java.util.List properties_ = java.util.Collections.emptyList(); private void ensurePropertiesIsMutable() { if (!((bitField0_ & 0x00001000) != 0)) { properties_ = new java.util.ArrayList(properties_); bitField0_ |= 0x00001000; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.milvus.grpc.KeyValuePair, io.milvus.grpc.KeyValuePair.Builder, io.milvus.grpc.KeyValuePairOrBuilder> propertiesBuilder_; /** * repeated .milvus.proto.common.KeyValuePair properties = 13; */ public java.util.List getPropertiesList() { if (propertiesBuilder_ == null) { return java.util.Collections.unmodifiableList(properties_); } else { return propertiesBuilder_.getMessageList(); } } /** * repeated .milvus.proto.common.KeyValuePair properties = 13; */ public int getPropertiesCount() { if (propertiesBuilder_ == null) { return properties_.size(); } else { return propertiesBuilder_.getCount(); } } /** * repeated .milvus.proto.common.KeyValuePair properties = 13; */ public io.milvus.grpc.KeyValuePair getProperties(int index) { if (propertiesBuilder_ == null) { return properties_.get(index); } else { return propertiesBuilder_.getMessage(index); } } /** * repeated .milvus.proto.common.KeyValuePair properties = 13; */ public Builder setProperties( int index, io.milvus.grpc.KeyValuePair value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePropertiesIsMutable(); properties_.set(index, value); onChanged(); } else { propertiesBuilder_.setMessage(index, value); } return this; } /** * repeated .milvus.proto.common.KeyValuePair properties = 13; */ public Builder setProperties( int index, io.milvus.grpc.KeyValuePair.Builder builderForValue) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.set(index, builderForValue.build()); onChanged(); } else { propertiesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .milvus.proto.common.KeyValuePair properties = 13; */ public Builder addProperties(io.milvus.grpc.KeyValuePair value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePropertiesIsMutable(); properties_.add(value); onChanged(); } else { propertiesBuilder_.addMessage(value); } return this; } /** * repeated .milvus.proto.common.KeyValuePair properties = 13; */ public Builder addProperties( int index, io.milvus.grpc.KeyValuePair value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePropertiesIsMutable(); properties_.add(index, value); onChanged(); } else { propertiesBuilder_.addMessage(index, value); } return this; } /** * repeated .milvus.proto.common.KeyValuePair properties = 13; */ public Builder addProperties( io.milvus.grpc.KeyValuePair.Builder builderForValue) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.add(builderForValue.build()); onChanged(); } else { propertiesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .milvus.proto.common.KeyValuePair properties = 13; */ public Builder addProperties( int index, io.milvus.grpc.KeyValuePair.Builder builderForValue) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.add(index, builderForValue.build()); onChanged(); } else { propertiesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .milvus.proto.common.KeyValuePair properties = 13; */ public Builder addAllProperties( java.lang.Iterable values) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, properties_); onChanged(); } else { propertiesBuilder_.addAllMessages(values); } return this; } /** * repeated .milvus.proto.common.KeyValuePair properties = 13; */ public Builder clearProperties() { if (propertiesBuilder_ == null) { properties_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00001000); onChanged(); } else { propertiesBuilder_.clear(); } return this; } /** * repeated .milvus.proto.common.KeyValuePair properties = 13; */ public Builder removeProperties(int index) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.remove(index); onChanged(); } else { propertiesBuilder_.remove(index); } return this; } /** * repeated .milvus.proto.common.KeyValuePair properties = 13; */ public io.milvus.grpc.KeyValuePair.Builder getPropertiesBuilder( int index) { return getPropertiesFieldBuilder().getBuilder(index); } /** * repeated .milvus.proto.common.KeyValuePair properties = 13; */ public io.milvus.grpc.KeyValuePairOrBuilder getPropertiesOrBuilder( int index) { if (propertiesBuilder_ == null) { return properties_.get(index); } else { return propertiesBuilder_.getMessageOrBuilder(index); } } /** * repeated .milvus.proto.common.KeyValuePair properties = 13; */ public java.util.List getPropertiesOrBuilderList() { if (propertiesBuilder_ != null) { return propertiesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(properties_); } } /** * repeated .milvus.proto.common.KeyValuePair properties = 13; */ public io.milvus.grpc.KeyValuePair.Builder addPropertiesBuilder() { return getPropertiesFieldBuilder().addBuilder( io.milvus.grpc.KeyValuePair.getDefaultInstance()); } /** * repeated .milvus.proto.common.KeyValuePair properties = 13; */ public io.milvus.grpc.KeyValuePair.Builder addPropertiesBuilder( int index) { return getPropertiesFieldBuilder().addBuilder( index, io.milvus.grpc.KeyValuePair.getDefaultInstance()); } /** * repeated .milvus.proto.common.KeyValuePair properties = 13; */ public java.util.List getPropertiesBuilderList() { return getPropertiesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.milvus.grpc.KeyValuePair, io.milvus.grpc.KeyValuePair.Builder, io.milvus.grpc.KeyValuePairOrBuilder> getPropertiesFieldBuilder() { if (propertiesBuilder_ == null) { propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.milvus.grpc.KeyValuePair, io.milvus.grpc.KeyValuePair.Builder, io.milvus.grpc.KeyValuePairOrBuilder>( properties_, ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); properties_ = null; } return propertiesBuilder_; } private java.lang.Object dbName_ = ""; /** * string db_name = 14; * @return The dbName. */ public java.lang.String getDbName() { java.lang.Object ref = dbName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dbName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string db_name = 14; * @return The bytes for dbName. */ public com.google.protobuf.ByteString getDbNameBytes() { java.lang.Object ref = dbName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dbName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string db_name = 14; * @param value The dbName to set. * @return This builder for chaining. */ public Builder setDbName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dbName_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** * string db_name = 14; * @return This builder for chaining. */ public Builder clearDbName() { dbName_ = getDefaultInstance().getDbName(); bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } /** * string db_name = 14; * @param value The bytes for dbName to set. * @return This builder for chaining. */ public Builder setDbNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dbName_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } private long numPartitions_ ; /** * int64 num_partitions = 15; * @return The numPartitions. */ @java.lang.Override public long getNumPartitions() { return numPartitions_; } /** * int64 num_partitions = 15; * @param value The numPartitions to set. * @return This builder for chaining. */ public Builder setNumPartitions(long value) { numPartitions_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } /** * int64 num_partitions = 15; * @return This builder for chaining. */ public Builder clearNumPartitions() { bitField0_ = (bitField0_ & ~0x00004000); numPartitions_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:milvus.proto.milvus.DescribeCollectionResponse) } // @@protoc_insertion_point(class_scope:milvus.proto.milvus.DescribeCollectionResponse) private static final io.milvus.grpc.DescribeCollectionResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.milvus.grpc.DescribeCollectionResponse(); } public static io.milvus.grpc.DescribeCollectionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DescribeCollectionResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.milvus.grpc.DescribeCollectionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy