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

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

Go to download

Java SDK for Milvus, a distributed high-performance vector search engine. update grpc to 1.42.1 update protobuf to 3.19.1

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

package io.milvus.grpc;

/**
 * 
 * ReplicaGroup
 * 
* * Protobuf type {@code milvus.proto.milvus.ReplicaInfo} */ public final class ReplicaInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:milvus.proto.milvus.ReplicaInfo) ReplicaInfoOrBuilder { private static final long serialVersionUID = 0L; // Use ReplicaInfo.newBuilder() to construct. private ReplicaInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReplicaInfo() { partitionIds_ = emptyLongList(); shardReplicas_ = java.util.Collections.emptyList(); nodeIds_ = emptyLongList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ReplicaInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReplicaInfo( 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 8: { replicaID_ = input.readInt64(); break; } case 16: { collectionID_ = input.readInt64(); break; } case 24: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { partitionIds_ = newLongList(); mutable_bitField0_ |= 0x00000001; } partitionIds_.addLong(input.readInt64()); break; } case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { partitionIds_ = newLongList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { partitionIds_.addLong(input.readInt64()); } input.popLimit(limit); break; } case 34: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { shardReplicas_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } shardReplicas_.add( input.readMessage(io.milvus.grpc.ShardReplica.parser(), extensionRegistry)); break; } case 40: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { nodeIds_ = newLongList(); mutable_bitField0_ |= 0x00000004; } nodeIds_.addLong(input.readInt64()); break; } case 42: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) { nodeIds_ = newLongList(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { nodeIds_.addLong(input.readInt64()); } input.popLimit(limit); 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)) { partitionIds_.makeImmutable(); // C } if (((mutable_bitField0_ & 0x00000002) != 0)) { shardReplicas_ = java.util.Collections.unmodifiableList(shardReplicas_); } if (((mutable_bitField0_ & 0x00000004) != 0)) { nodeIds_.makeImmutable(); // C } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_ReplicaInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_ReplicaInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( io.milvus.grpc.ReplicaInfo.class, io.milvus.grpc.ReplicaInfo.Builder.class); } public static final int REPLICAID_FIELD_NUMBER = 1; private long replicaID_; /** * int64 replicaID = 1; * @return The replicaID. */ @java.lang.Override public long getReplicaID() { return replicaID_; } public static final int COLLECTIONID_FIELD_NUMBER = 2; private long collectionID_; /** * int64 collectionID = 2; * @return The collectionID. */ @java.lang.Override public long getCollectionID() { return collectionID_; } public static final int PARTITION_IDS_FIELD_NUMBER = 3; private com.google.protobuf.Internal.LongList partitionIds_; /** *
   * empty indicates to load collection
   * 
* * repeated int64 partition_ids = 3; * @return A list containing the partitionIds. */ @java.lang.Override public java.util.List getPartitionIdsList() { return partitionIds_; } /** *
   * empty indicates to load collection
   * 
* * repeated int64 partition_ids = 3; * @return The count of partitionIds. */ public int getPartitionIdsCount() { return partitionIds_.size(); } /** *
   * empty indicates to load collection
   * 
* * repeated int64 partition_ids = 3; * @param index The index of the element to return. * @return The partitionIds at the given index. */ public long getPartitionIds(int index) { return partitionIds_.getLong(index); } private int partitionIdsMemoizedSerializedSize = -1; public static final int SHARD_REPLICAS_FIELD_NUMBER = 4; private java.util.List shardReplicas_; /** * repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4; */ @java.lang.Override public java.util.List getShardReplicasList() { return shardReplicas_; } /** * repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4; */ @java.lang.Override public java.util.List getShardReplicasOrBuilderList() { return shardReplicas_; } /** * repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4; */ @java.lang.Override public int getShardReplicasCount() { return shardReplicas_.size(); } /** * repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4; */ @java.lang.Override public io.milvus.grpc.ShardReplica getShardReplicas(int index) { return shardReplicas_.get(index); } /** * repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4; */ @java.lang.Override public io.milvus.grpc.ShardReplicaOrBuilder getShardReplicasOrBuilder( int index) { return shardReplicas_.get(index); } public static final int NODE_IDS_FIELD_NUMBER = 5; private com.google.protobuf.Internal.LongList nodeIds_; /** *
   * include leaders
   * 
* * repeated int64 node_ids = 5; * @return A list containing the nodeIds. */ @java.lang.Override public java.util.List getNodeIdsList() { return nodeIds_; } /** *
   * include leaders
   * 
* * repeated int64 node_ids = 5; * @return The count of nodeIds. */ public int getNodeIdsCount() { return nodeIds_.size(); } /** *
   * include leaders
   * 
* * repeated int64 node_ids = 5; * @param index The index of the element to return. * @return The nodeIds at the given index. */ public long getNodeIds(int index) { return nodeIds_.getLong(index); } private int nodeIdsMemoizedSerializedSize = -1; 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 { getSerializedSize(); if (replicaID_ != 0L) { output.writeInt64(1, replicaID_); } if (collectionID_ != 0L) { output.writeInt64(2, collectionID_); } if (getPartitionIdsList().size() > 0) { output.writeUInt32NoTag(26); output.writeUInt32NoTag(partitionIdsMemoizedSerializedSize); } for (int i = 0; i < partitionIds_.size(); i++) { output.writeInt64NoTag(partitionIds_.getLong(i)); } for (int i = 0; i < shardReplicas_.size(); i++) { output.writeMessage(4, shardReplicas_.get(i)); } if (getNodeIdsList().size() > 0) { output.writeUInt32NoTag(42); output.writeUInt32NoTag(nodeIdsMemoizedSerializedSize); } for (int i = 0; i < nodeIds_.size(); i++) { output.writeInt64NoTag(nodeIds_.getLong(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (replicaID_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, replicaID_); } if (collectionID_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, collectionID_); } { int dataSize = 0; for (int i = 0; i < partitionIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(partitionIds_.getLong(i)); } size += dataSize; if (!getPartitionIdsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } partitionIdsMemoizedSerializedSize = dataSize; } for (int i = 0; i < shardReplicas_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, shardReplicas_.get(i)); } { int dataSize = 0; for (int i = 0; i < nodeIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(nodeIds_.getLong(i)); } size += dataSize; if (!getNodeIdsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } nodeIdsMemoizedSerializedSize = dataSize; } 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.ReplicaInfo)) { return super.equals(obj); } io.milvus.grpc.ReplicaInfo other = (io.milvus.grpc.ReplicaInfo) obj; if (getReplicaID() != other.getReplicaID()) return false; if (getCollectionID() != other.getCollectionID()) return false; if (!getPartitionIdsList() .equals(other.getPartitionIdsList())) return false; if (!getShardReplicasList() .equals(other.getShardReplicasList())) return false; if (!getNodeIdsList() .equals(other.getNodeIdsList())) 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(); hash = (37 * hash) + REPLICAID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getReplicaID()); hash = (37 * hash) + COLLECTIONID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCollectionID()); if (getPartitionIdsCount() > 0) { hash = (37 * hash) + PARTITION_IDS_FIELD_NUMBER; hash = (53 * hash) + getPartitionIdsList().hashCode(); } if (getShardReplicasCount() > 0) { hash = (37 * hash) + SHARD_REPLICAS_FIELD_NUMBER; hash = (53 * hash) + getShardReplicasList().hashCode(); } if (getNodeIdsCount() > 0) { hash = (37 * hash) + NODE_IDS_FIELD_NUMBER; hash = (53 * hash) + getNodeIdsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.milvus.grpc.ReplicaInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.milvus.grpc.ReplicaInfo 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.ReplicaInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.milvus.grpc.ReplicaInfo 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.ReplicaInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.milvus.grpc.ReplicaInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.milvus.grpc.ReplicaInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.milvus.grpc.ReplicaInfo 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.ReplicaInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.milvus.grpc.ReplicaInfo 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.ReplicaInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.milvus.grpc.ReplicaInfo 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.ReplicaInfo 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; } /** *
   * ReplicaGroup
   * 
* * Protobuf type {@code milvus.proto.milvus.ReplicaInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:milvus.proto.milvus.ReplicaInfo) io.milvus.grpc.ReplicaInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_ReplicaInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_ReplicaInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( io.milvus.grpc.ReplicaInfo.class, io.milvus.grpc.ReplicaInfo.Builder.class); } // Construct using io.milvus.grpc.ReplicaInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getShardReplicasFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); replicaID_ = 0L; collectionID_ = 0L; partitionIds_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000001); if (shardReplicasBuilder_ == null) { shardReplicas_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { shardReplicasBuilder_.clear(); } nodeIds_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_ReplicaInfo_descriptor; } @java.lang.Override public io.milvus.grpc.ReplicaInfo getDefaultInstanceForType() { return io.milvus.grpc.ReplicaInfo.getDefaultInstance(); } @java.lang.Override public io.milvus.grpc.ReplicaInfo build() { io.milvus.grpc.ReplicaInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.milvus.grpc.ReplicaInfo buildPartial() { io.milvus.grpc.ReplicaInfo result = new io.milvus.grpc.ReplicaInfo(this); int from_bitField0_ = bitField0_; result.replicaID_ = replicaID_; result.collectionID_ = collectionID_; if (((bitField0_ & 0x00000001) != 0)) { partitionIds_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.partitionIds_ = partitionIds_; if (shardReplicasBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { shardReplicas_ = java.util.Collections.unmodifiableList(shardReplicas_); bitField0_ = (bitField0_ & ~0x00000002); } result.shardReplicas_ = shardReplicas_; } else { result.shardReplicas_ = shardReplicasBuilder_.build(); } if (((bitField0_ & 0x00000004) != 0)) { nodeIds_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000004); } result.nodeIds_ = nodeIds_; 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.ReplicaInfo) { return mergeFrom((io.milvus.grpc.ReplicaInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.milvus.grpc.ReplicaInfo other) { if (other == io.milvus.grpc.ReplicaInfo.getDefaultInstance()) return this; if (other.getReplicaID() != 0L) { setReplicaID(other.getReplicaID()); } if (other.getCollectionID() != 0L) { setCollectionID(other.getCollectionID()); } if (!other.partitionIds_.isEmpty()) { if (partitionIds_.isEmpty()) { partitionIds_ = other.partitionIds_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePartitionIdsIsMutable(); partitionIds_.addAll(other.partitionIds_); } onChanged(); } if (shardReplicasBuilder_ == null) { if (!other.shardReplicas_.isEmpty()) { if (shardReplicas_.isEmpty()) { shardReplicas_ = other.shardReplicas_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureShardReplicasIsMutable(); shardReplicas_.addAll(other.shardReplicas_); } onChanged(); } } else { if (!other.shardReplicas_.isEmpty()) { if (shardReplicasBuilder_.isEmpty()) { shardReplicasBuilder_.dispose(); shardReplicasBuilder_ = null; shardReplicas_ = other.shardReplicas_; bitField0_ = (bitField0_ & ~0x00000002); shardReplicasBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShardReplicasFieldBuilder() : null; } else { shardReplicasBuilder_.addAllMessages(other.shardReplicas_); } } } if (!other.nodeIds_.isEmpty()) { if (nodeIds_.isEmpty()) { nodeIds_ = other.nodeIds_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureNodeIdsIsMutable(); nodeIds_.addAll(other.nodeIds_); } 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.ReplicaInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.milvus.grpc.ReplicaInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long replicaID_ ; /** * int64 replicaID = 1; * @return The replicaID. */ @java.lang.Override public long getReplicaID() { return replicaID_; } /** * int64 replicaID = 1; * @param value The replicaID to set. * @return This builder for chaining. */ public Builder setReplicaID(long value) { replicaID_ = value; onChanged(); return this; } /** * int64 replicaID = 1; * @return This builder for chaining. */ public Builder clearReplicaID() { replicaID_ = 0L; onChanged(); return this; } private long collectionID_ ; /** * int64 collectionID = 2; * @return The collectionID. */ @java.lang.Override public long getCollectionID() { return collectionID_; } /** * int64 collectionID = 2; * @param value The collectionID to set. * @return This builder for chaining. */ public Builder setCollectionID(long value) { collectionID_ = value; onChanged(); return this; } /** * int64 collectionID = 2; * @return This builder for chaining. */ public Builder clearCollectionID() { collectionID_ = 0L; onChanged(); return this; } private com.google.protobuf.Internal.LongList partitionIds_ = emptyLongList(); private void ensurePartitionIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { partitionIds_ = mutableCopy(partitionIds_); bitField0_ |= 0x00000001; } } /** *
     * empty indicates to load collection
     * 
* * repeated int64 partition_ids = 3; * @return A list containing the partitionIds. */ public java.util.List getPartitionIdsList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(partitionIds_) : partitionIds_; } /** *
     * empty indicates to load collection
     * 
* * repeated int64 partition_ids = 3; * @return The count of partitionIds. */ public int getPartitionIdsCount() { return partitionIds_.size(); } /** *
     * empty indicates to load collection
     * 
* * repeated int64 partition_ids = 3; * @param index The index of the element to return. * @return The partitionIds at the given index. */ public long getPartitionIds(int index) { return partitionIds_.getLong(index); } /** *
     * empty indicates to load collection
     * 
* * repeated int64 partition_ids = 3; * @param index The index to set the value at. * @param value The partitionIds to set. * @return This builder for chaining. */ public Builder setPartitionIds( int index, long value) { ensurePartitionIdsIsMutable(); partitionIds_.setLong(index, value); onChanged(); return this; } /** *
     * empty indicates to load collection
     * 
* * repeated int64 partition_ids = 3; * @param value The partitionIds to add. * @return This builder for chaining. */ public Builder addPartitionIds(long value) { ensurePartitionIdsIsMutable(); partitionIds_.addLong(value); onChanged(); return this; } /** *
     * empty indicates to load collection
     * 
* * repeated int64 partition_ids = 3; * @param values The partitionIds to add. * @return This builder for chaining. */ public Builder addAllPartitionIds( java.lang.Iterable values) { ensurePartitionIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, partitionIds_); onChanged(); return this; } /** *
     * empty indicates to load collection
     * 
* * repeated int64 partition_ids = 3; * @return This builder for chaining. */ public Builder clearPartitionIds() { partitionIds_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private java.util.List shardReplicas_ = java.util.Collections.emptyList(); private void ensureShardReplicasIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { shardReplicas_ = new java.util.ArrayList(shardReplicas_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.milvus.grpc.ShardReplica, io.milvus.grpc.ShardReplica.Builder, io.milvus.grpc.ShardReplicaOrBuilder> shardReplicasBuilder_; /** * repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4; */ public java.util.List getShardReplicasList() { if (shardReplicasBuilder_ == null) { return java.util.Collections.unmodifiableList(shardReplicas_); } else { return shardReplicasBuilder_.getMessageList(); } } /** * repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4; */ public int getShardReplicasCount() { if (shardReplicasBuilder_ == null) { return shardReplicas_.size(); } else { return shardReplicasBuilder_.getCount(); } } /** * repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4; */ public io.milvus.grpc.ShardReplica getShardReplicas(int index) { if (shardReplicasBuilder_ == null) { return shardReplicas_.get(index); } else { return shardReplicasBuilder_.getMessage(index); } } /** * repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4; */ public Builder setShardReplicas( int index, io.milvus.grpc.ShardReplica value) { if (shardReplicasBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShardReplicasIsMutable(); shardReplicas_.set(index, value); onChanged(); } else { shardReplicasBuilder_.setMessage(index, value); } return this; } /** * repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4; */ public Builder setShardReplicas( int index, io.milvus.grpc.ShardReplica.Builder builderForValue) { if (shardReplicasBuilder_ == null) { ensureShardReplicasIsMutable(); shardReplicas_.set(index, builderForValue.build()); onChanged(); } else { shardReplicasBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4; */ public Builder addShardReplicas(io.milvus.grpc.ShardReplica value) { if (shardReplicasBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShardReplicasIsMutable(); shardReplicas_.add(value); onChanged(); } else { shardReplicasBuilder_.addMessage(value); } return this; } /** * repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4; */ public Builder addShardReplicas( int index, io.milvus.grpc.ShardReplica value) { if (shardReplicasBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShardReplicasIsMutable(); shardReplicas_.add(index, value); onChanged(); } else { shardReplicasBuilder_.addMessage(index, value); } return this; } /** * repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4; */ public Builder addShardReplicas( io.milvus.grpc.ShardReplica.Builder builderForValue) { if (shardReplicasBuilder_ == null) { ensureShardReplicasIsMutable(); shardReplicas_.add(builderForValue.build()); onChanged(); } else { shardReplicasBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4; */ public Builder addShardReplicas( int index, io.milvus.grpc.ShardReplica.Builder builderForValue) { if (shardReplicasBuilder_ == null) { ensureShardReplicasIsMutable(); shardReplicas_.add(index, builderForValue.build()); onChanged(); } else { shardReplicasBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4; */ public Builder addAllShardReplicas( java.lang.Iterable values) { if (shardReplicasBuilder_ == null) { ensureShardReplicasIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, shardReplicas_); onChanged(); } else { shardReplicasBuilder_.addAllMessages(values); } return this; } /** * repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4; */ public Builder clearShardReplicas() { if (shardReplicasBuilder_ == null) { shardReplicas_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { shardReplicasBuilder_.clear(); } return this; } /** * repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4; */ public Builder removeShardReplicas(int index) { if (shardReplicasBuilder_ == null) { ensureShardReplicasIsMutable(); shardReplicas_.remove(index); onChanged(); } else { shardReplicasBuilder_.remove(index); } return this; } /** * repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4; */ public io.milvus.grpc.ShardReplica.Builder getShardReplicasBuilder( int index) { return getShardReplicasFieldBuilder().getBuilder(index); } /** * repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4; */ public io.milvus.grpc.ShardReplicaOrBuilder getShardReplicasOrBuilder( int index) { if (shardReplicasBuilder_ == null) { return shardReplicas_.get(index); } else { return shardReplicasBuilder_.getMessageOrBuilder(index); } } /** * repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4; */ public java.util.List getShardReplicasOrBuilderList() { if (shardReplicasBuilder_ != null) { return shardReplicasBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(shardReplicas_); } } /** * repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4; */ public io.milvus.grpc.ShardReplica.Builder addShardReplicasBuilder() { return getShardReplicasFieldBuilder().addBuilder( io.milvus.grpc.ShardReplica.getDefaultInstance()); } /** * repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4; */ public io.milvus.grpc.ShardReplica.Builder addShardReplicasBuilder( int index) { return getShardReplicasFieldBuilder().addBuilder( index, io.milvus.grpc.ShardReplica.getDefaultInstance()); } /** * repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4; */ public java.util.List getShardReplicasBuilderList() { return getShardReplicasFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.milvus.grpc.ShardReplica, io.milvus.grpc.ShardReplica.Builder, io.milvus.grpc.ShardReplicaOrBuilder> getShardReplicasFieldBuilder() { if (shardReplicasBuilder_ == null) { shardReplicasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.milvus.grpc.ShardReplica, io.milvus.grpc.ShardReplica.Builder, io.milvus.grpc.ShardReplicaOrBuilder>( shardReplicas_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); shardReplicas_ = null; } return shardReplicasBuilder_; } private com.google.protobuf.Internal.LongList nodeIds_ = emptyLongList(); private void ensureNodeIdsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { nodeIds_ = mutableCopy(nodeIds_); bitField0_ |= 0x00000004; } } /** *
     * include leaders
     * 
* * repeated int64 node_ids = 5; * @return A list containing the nodeIds. */ public java.util.List getNodeIdsList() { return ((bitField0_ & 0x00000004) != 0) ? java.util.Collections.unmodifiableList(nodeIds_) : nodeIds_; } /** *
     * include leaders
     * 
* * repeated int64 node_ids = 5; * @return The count of nodeIds. */ public int getNodeIdsCount() { return nodeIds_.size(); } /** *
     * include leaders
     * 
* * repeated int64 node_ids = 5; * @param index The index of the element to return. * @return The nodeIds at the given index. */ public long getNodeIds(int index) { return nodeIds_.getLong(index); } /** *
     * include leaders
     * 
* * repeated int64 node_ids = 5; * @param index The index to set the value at. * @param value The nodeIds to set. * @return This builder for chaining. */ public Builder setNodeIds( int index, long value) { ensureNodeIdsIsMutable(); nodeIds_.setLong(index, value); onChanged(); return this; } /** *
     * include leaders
     * 
* * repeated int64 node_ids = 5; * @param value The nodeIds to add. * @return This builder for chaining. */ public Builder addNodeIds(long value) { ensureNodeIdsIsMutable(); nodeIds_.addLong(value); onChanged(); return this; } /** *
     * include leaders
     * 
* * repeated int64 node_ids = 5; * @param values The nodeIds to add. * @return This builder for chaining. */ public Builder addAllNodeIds( java.lang.Iterable values) { ensureNodeIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, nodeIds_); onChanged(); return this; } /** *
     * include leaders
     * 
* * repeated int64 node_ids = 5; * @return This builder for chaining. */ public Builder clearNodeIds() { nodeIds_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000004); 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.ReplicaInfo) } // @@protoc_insertion_point(class_scope:milvus.proto.milvus.ReplicaInfo) private static final io.milvus.grpc.ReplicaInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.milvus.grpc.ReplicaInfo(); } public static io.milvus.grpc.ReplicaInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ReplicaInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReplicaInfo(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.ReplicaInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy