io.milvus.grpc.DescribeCollectionResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of milvus-sdk-java Show documentation
Show all versions of milvus-sdk-java Show documentation
Java SDK for Milvus, a distributed high-performance vector search engine.
update grpc to 1.42.1
update protobuf to 3.19.1
// 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.EMPTY;
physicalChannelNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
aliases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
startPositions_ = java.util.Collections.emptyList();
consistencyLevel_ = 0;
collectionName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DescribeCollectionResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DescribeCollectionResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.milvus.grpc.Status.Builder subBuilder = null;
if (status_ != null) {
subBuilder = status_.toBuilder();
}
status_ = input.readMessage(io.milvus.grpc.Status.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(status_);
status_ = subBuilder.buildPartial();
}
break;
}
case 18: {
io.milvus.grpc.CollectionSchema.Builder subBuilder = null;
if (schema_ != null) {
subBuilder = schema_.toBuilder();
}
schema_ = input.readMessage(io.milvus.grpc.CollectionSchema.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(schema_);
schema_ = subBuilder.buildPartial();
}
break;
}
case 24: {
collectionID_ = input.readInt64();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
virtualChannelNames_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
virtualChannelNames_.add(s);
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
physicalChannelNames_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
physicalChannelNames_.add(s);
break;
}
case 48: {
createdTimestamp_ = input.readUInt64();
break;
}
case 56: {
createdUtcTimestamp_ = input.readUInt64();
break;
}
case 64: {
shardsNum_ = input.readInt32();
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
aliases_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
aliases_.add(s);
break;
}
case 82: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
startPositions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
startPositions_.add(
input.readMessage(io.milvus.grpc.KeyDataPair.parser(), extensionRegistry));
break;
}
case 88: {
int rawValue = input.readEnum();
consistencyLevel_ = rawValue;
break;
}
case 98: {
java.lang.String s = input.readStringRequireUtf8();
collectionName_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
virtualChannelNames_ = virtualChannelNames_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
physicalChannelNames_ = physicalChannelNames_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
aliases_ = aliases_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
startPositions_ = java.util.Collections.unmodifiableList(startPositions_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
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);
}
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 status_ != null;
}
/**
*
* 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 getStatus();
}
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 schema_ != null;
}
/**
*
* 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 getSchema();
}
public static final int COLLECTIONID_FIELD_NUMBER = 3;
private long collectionID_;
/**
*
* 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;
private com.google.protobuf.LazyStringList virtualChannelNames_;
/**
*
* 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;
private com.google.protobuf.LazyStringList physicalChannelNames_;
/**
*
* 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_;
/**
*
* 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_;
/**
*
* 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_;
/**
*
* 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;
private com.google.protobuf.LazyStringList aliases_;
/**
*
* 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;
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 extends io.milvus.grpc.KeyDataPairOrBuilder>
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_;
/**
*
* 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() {
@SuppressWarnings("deprecation")
io.milvus.grpc.ConsistencyLevel result = io.milvus.grpc.ConsistencyLevel.valueOf(consistencyLevel_);
return result == null ? io.milvus.grpc.ConsistencyLevel.UNRECOGNIZED : result;
}
public static final int COLLECTION_NAME_FIELD_NUMBER = 12;
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;
}
}
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 (status_ != null) {
output.writeMessage(1, getStatus());
}
if (schema_ != null) {
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_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getStatus());
}
if (schema_ != null) {
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_);
}
size += unknownFields.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 (!unknownFields.equals(other.unknownFields)) 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();
hash = (29 * hash) + unknownFields.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) {
getStartPositionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (statusBuilder_ == null) {
status_ = null;
} else {
status_ = null;
statusBuilder_ = null;
}
if (schemaBuilder_ == null) {
schema_ = null;
} else {
schema_ = null;
schemaBuilder_ = null;
}
collectionID_ = 0L;
virtualChannelNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
physicalChannelNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
createdTimestamp_ = 0L;
createdUtcTimestamp_ = 0L;
shardsNum_ = 0;
aliases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
if (startPositionsBuilder_ == null) {
startPositions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
startPositionsBuilder_.clear();
}
consistencyLevel_ = 0;
collectionName_ = "";
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);
int from_bitField0_ = bitField0_;
if (statusBuilder_ == null) {
result.status_ = status_;
} else {
result.status_ = statusBuilder_.build();
}
if (schemaBuilder_ == null) {
result.schema_ = schema_;
} else {
result.schema_ = schemaBuilder_.build();
}
result.collectionID_ = collectionID_;
if (((bitField0_ & 0x00000001) != 0)) {
virtualChannelNames_ = virtualChannelNames_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.virtualChannelNames_ = virtualChannelNames_;
if (((bitField0_ & 0x00000002) != 0)) {
physicalChannelNames_ = physicalChannelNames_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.physicalChannelNames_ = physicalChannelNames_;
result.createdTimestamp_ = createdTimestamp_;
result.createdUtcTimestamp_ = createdUtcTimestamp_;
result.shardsNum_ = shardsNum_;
if (((bitField0_ & 0x00000004) != 0)) {
aliases_ = aliases_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.aliases_ = aliases_;
if (startPositionsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
startPositions_ = java.util.Collections.unmodifiableList(startPositions_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.startPositions_ = startPositions_;
} else {
result.startPositions_ = startPositionsBuilder_.build();
}
result.consistencyLevel_ = consistencyLevel_;
result.collectionName_ = collectionName_;
onBuilt();
return result;
}
@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_ = (bitField0_ & ~0x00000001);
} else {
ensureVirtualChannelNamesIsMutable();
virtualChannelNames_.addAll(other.virtualChannelNames_);
}
onChanged();
}
if (!other.physicalChannelNames_.isEmpty()) {
if (physicalChannelNames_.isEmpty()) {
physicalChannelNames_ = other.physicalChannelNames_;
bitField0_ = (bitField0_ & ~0x00000002);
} 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_ = (bitField0_ & ~0x00000004);
} else {
ensureAliasesIsMutable();
aliases_.addAll(other.aliases_);
}
onChanged();
}
if (startPositionsBuilder_ == null) {
if (!other.startPositions_.isEmpty()) {
if (startPositions_.isEmpty()) {
startPositions_ = other.startPositions_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureStartPositionsIsMutable();
startPositions_.addAll(other.startPositions_);
}
onChanged();
}
} else {
if (!other.startPositions_.isEmpty()) {
if (startPositionsBuilder_.isEmpty()) {
startPositionsBuilder_.dispose();
startPositionsBuilder_ = null;
startPositions_ = other.startPositions_;
bitField0_ = (bitField0_ & ~0x00000008);
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_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
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 {
io.milvus.grpc.DescribeCollectionResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.milvus.grpc.DescribeCollectionResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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 statusBuilder_ != null || status_ != null;
}
/**
*
* 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;
onChanged();
} else {
statusBuilder_.setMessage(value);
}
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();
onChanged();
} else {
statusBuilder_.setMessage(builderForValue.build());
}
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 (status_ != null) {
status_ =
io.milvus.grpc.Status.newBuilder(status_).mergeFrom(value).buildPartial();
} else {
status_ = value;
}
onChanged();
} else {
statusBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Contain error_code and reason
*
*
* .milvus.proto.common.Status status = 1;
*/
public Builder clearStatus() {
if (statusBuilder_ == null) {
status_ = null;
onChanged();
} else {
status_ = null;
statusBuilder_ = null;
}
return this;
}
/**
*
* Contain error_code and reason
*
*
* .milvus.proto.common.Status status = 1;
*/
public io.milvus.grpc.Status.Builder getStatusBuilder() {
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 schemaBuilder_ != null || schema_ != null;
}
/**
*
* 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;
onChanged();
} else {
schemaBuilder_.setMessage(value);
}
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();
onChanged();
} else {
schemaBuilder_.setMessage(builderForValue.build());
}
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 (schema_ != null) {
schema_ =
io.milvus.grpc.CollectionSchema.newBuilder(schema_).mergeFrom(value).buildPartial();
} else {
schema_ = value;
}
onChanged();
} else {
schemaBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The schema param when you created collection.
*
*
* .milvus.proto.schema.CollectionSchema schema = 2;
*/
public Builder clearSchema() {
if (schemaBuilder_ == null) {
schema_ = null;
onChanged();
} else {
schema_ = null;
schemaBuilder_ = null;
}
return this;
}
/**
*
* The schema param when you created collection.
*
*
* .milvus.proto.schema.CollectionSchema schema = 2;
*/
public io.milvus.grpc.CollectionSchema.Builder getSchemaBuilder() {
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;
onChanged();
return this;
}
/**
*
* The collection id
*
*
* int64 collectionID = 3;
* @return This builder for chaining.
*/
public Builder clearCollectionID() {
collectionID_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList virtualChannelNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureVirtualChannelNamesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
virtualChannelNames_ = new com.google.protobuf.LazyStringArrayList(virtualChannelNames_);
bitField0_ |= 0x00000001;
}
}
/**
*
* 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_.getUnmodifiableView();
}
/**
*
* 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);
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);
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_);
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.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
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);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList physicalChannelNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePhysicalChannelNamesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
physicalChannelNames_ = new com.google.protobuf.LazyStringArrayList(physicalChannelNames_);
bitField0_ |= 0x00000002;
}
}
/**
*
* 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_.getUnmodifiableView();
}
/**
*
* 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);
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);
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_);
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.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
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);
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;
onChanged();
return this;
}
/**
*
* Hybrid timestamp in milvus
*
*
* uint64 created_timestamp = 6;
* @return This builder for chaining.
*/
public Builder clearCreatedTimestamp() {
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;
onChanged();
return this;
}
/**
*
* The utc timestamp calculated by created_timestamp
*
*
* uint64 created_utc_timestamp = 7;
* @return This builder for chaining.
*/
public Builder clearCreatedUtcTimestamp() {
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;
onChanged();
return this;
}
/**
*
* The shards number you set.
*
*
* int32 shards_num = 8;
* @return This builder for chaining.
*/
public Builder clearShardsNum() {
shardsNum_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList aliases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAliasesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
aliases_ = new com.google.protobuf.LazyStringArrayList(aliases_);
bitField0_ |= 0x00000004;
}
}
/**
*
* The aliases of this collection
*
*
* repeated string aliases = 9;
* @return A list containing the aliases.
*/
public com.google.protobuf.ProtocolStringList
getAliasesList() {
return aliases_.getUnmodifiableView();
}
/**
*
* 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);
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);
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_);
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.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
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);
onChanged();
return this;
}
private java.util.List startPositions_ =
java.util.Collections.emptyList();
private void ensureStartPositionsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
startPositions_ = new java.util.ArrayList(startPositions_);
bitField0_ |= 0x00000008;
}
}
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 extends io.milvus.grpc.KeyDataPair> 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_ & ~0x00000008);
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 extends io.milvus.grpc.KeyDataPairOrBuilder>
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_ & 0x00000008) != 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;
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() {
@SuppressWarnings("deprecation")
io.milvus.grpc.ConsistencyLevel result = io.milvus.grpc.ConsistencyLevel.valueOf(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();
}
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() {
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;
onChanged();
return this;
}
/**
*
* The collection name
*
*
* string collection_name = 12;
* @return This builder for chaining.
*/
public Builder clearCollectionName() {
collectionName_ = getDefaultInstance().getCollectionName();
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;
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 {
return new DescribeCollectionResponse(input, extensionRegistry);
}
};
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;
}
}