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

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

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

package io.milvus.grpc;

/**
 * 
 * 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(); resourceGroupName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ReplicaInfo(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_ReplicaInfo_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 7: return internalGetNumOutboundNode(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @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_ = 0L; /** * 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_ = 0L; /** * int64 collectionID = 2; * @return The collectionID. */ @java.lang.Override public long getCollectionID() { return collectionID_; } public static final int PARTITION_IDS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList partitionIds_ = emptyLongList(); /** *
   * 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; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList nodeIds_ = emptyLongList(); /** *
   * 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; public static final int RESOURCE_GROUP_NAME_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object resourceGroupName_ = ""; /** * string resource_group_name = 6; * @return The resourceGroupName. */ @java.lang.Override public java.lang.String getResourceGroupName() { java.lang.Object ref = resourceGroupName_; 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(); resourceGroupName_ = s; return s; } } /** * string resource_group_name = 6; * @return The bytes for resourceGroupName. */ @java.lang.Override public com.google.protobuf.ByteString getResourceGroupNameBytes() { java.lang.Object ref = resourceGroupName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); resourceGroupName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NUM_OUTBOUND_NODE_FIELD_NUMBER = 7; private static final class NumOutboundNodeDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.Integer> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_ReplicaInfo_NumOutboundNodeEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.INT32, 0); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, java.lang.Integer> numOutboundNode_; private com.google.protobuf.MapField internalGetNumOutboundNode() { if (numOutboundNode_ == null) { return com.google.protobuf.MapField.emptyMapField( NumOutboundNodeDefaultEntryHolder.defaultEntry); } return numOutboundNode_; } public int getNumOutboundNodeCount() { return internalGetNumOutboundNode().getMap().size(); } /** *
   * outbound access rg -> node num
   * 
* * map<string, int32> num_outbound_node = 7; */ @java.lang.Override public boolean containsNumOutboundNode( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetNumOutboundNode().getMap().containsKey(key); } /** * Use {@link #getNumOutboundNodeMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getNumOutboundNode() { return getNumOutboundNodeMap(); } /** *
   * outbound access rg -> node num
   * 
* * map<string, int32> num_outbound_node = 7; */ @java.lang.Override public java.util.Map getNumOutboundNodeMap() { return internalGetNumOutboundNode().getMap(); } /** *
   * outbound access rg -> node num
   * 
* * map<string, int32> num_outbound_node = 7; */ @java.lang.Override public int getNumOutboundNodeOrDefault( java.lang.String key, int defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetNumOutboundNode().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   * outbound access rg -> node num
   * 
* * map<string, int32> num_outbound_node = 7; */ @java.lang.Override public int getNumOutboundNodeOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetNumOutboundNode().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } 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)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceGroupName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, resourceGroupName_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetNumOutboundNode(), NumOutboundNodeDefaultEntryHolder.defaultEntry, 7); getUnknownFields().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; } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceGroupName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, resourceGroupName_); } for (java.util.Map.Entry entry : internalGetNumOutboundNode().getMap().entrySet()) { com.google.protobuf.MapEntry numOutboundNode__ = NumOutboundNodeDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, numOutboundNode__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.milvus.grpc.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 (!getResourceGroupName() .equals(other.getResourceGroupName())) return false; if (!internalGetNumOutboundNode().equals( other.internalGetNumOutboundNode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); 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 = (37 * hash) + RESOURCE_GROUP_NAME_FIELD_NUMBER; hash = (53 * hash) + getResourceGroupName().hashCode(); if (!internalGetNumOutboundNode().getMap().isEmpty()) { hash = (37 * hash) + NUM_OUTBOUND_NODE_FIELD_NUMBER; hash = (53 * hash) + internalGetNumOutboundNode().hashCode(); } hash = (29 * hash) + getUnknownFields().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; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 7: return internalGetNumOutboundNode(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 7: return internalGetMutableNumOutboundNode(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; replicaID_ = 0L; collectionID_ = 0L; partitionIds_ = emptyLongList(); if (shardReplicasBuilder_ == null) { shardReplicas_ = java.util.Collections.emptyList(); } else { shardReplicas_ = null; shardReplicasBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); nodeIds_ = emptyLongList(); resourceGroupName_ = ""; internalGetMutableNumOutboundNode().clear(); 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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.milvus.grpc.ReplicaInfo result) { if (shardReplicasBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { shardReplicas_ = java.util.Collections.unmodifiableList(shardReplicas_); bitField0_ = (bitField0_ & ~0x00000008); } result.shardReplicas_ = shardReplicas_; } else { result.shardReplicas_ = shardReplicasBuilder_.build(); } } private void buildPartial0(io.milvus.grpc.ReplicaInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.replicaID_ = replicaID_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.collectionID_ = collectionID_; } if (((from_bitField0_ & 0x00000004) != 0)) { partitionIds_.makeImmutable(); result.partitionIds_ = partitionIds_; } if (((from_bitField0_ & 0x00000010) != 0)) { nodeIds_.makeImmutable(); result.nodeIds_ = nodeIds_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.resourceGroupName_ = resourceGroupName_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.numOutboundNode_ = internalGetNumOutboundNode(); result.numOutboundNode_.makeImmutable(); } } @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_; partitionIds_.makeImmutable(); bitField0_ |= 0x00000004; } else { ensurePartitionIdsIsMutable(); partitionIds_.addAll(other.partitionIds_); } onChanged(); } if (shardReplicasBuilder_ == null) { if (!other.shardReplicas_.isEmpty()) { if (shardReplicas_.isEmpty()) { shardReplicas_ = other.shardReplicas_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureShardReplicasIsMutable(); shardReplicas_.addAll(other.shardReplicas_); } onChanged(); } } else { if (!other.shardReplicas_.isEmpty()) { if (shardReplicasBuilder_.isEmpty()) { shardReplicasBuilder_.dispose(); shardReplicasBuilder_ = null; shardReplicas_ = other.shardReplicas_; bitField0_ = (bitField0_ & ~0x00000008); shardReplicasBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShardReplicasFieldBuilder() : null; } else { shardReplicasBuilder_.addAllMessages(other.shardReplicas_); } } } if (!other.nodeIds_.isEmpty()) { if (nodeIds_.isEmpty()) { nodeIds_ = other.nodeIds_; nodeIds_.makeImmutable(); bitField0_ |= 0x00000010; } else { ensureNodeIdsIsMutable(); nodeIds_.addAll(other.nodeIds_); } onChanged(); } if (!other.getResourceGroupName().isEmpty()) { resourceGroupName_ = other.resourceGroupName_; bitField0_ |= 0x00000020; onChanged(); } internalGetMutableNumOutboundNode().mergeFrom( other.internalGetNumOutboundNode()); bitField0_ |= 0x00000040; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { replicaID_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { collectionID_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { long v = input.readInt64(); ensurePartitionIdsIsMutable(); partitionIds_.addLong(v); break; } // case 24 case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensurePartitionIdsIsMutable(); while (input.getBytesUntilLimit() > 0) { partitionIds_.addLong(input.readInt64()); } input.popLimit(limit); break; } // case 26 case 34: { io.milvus.grpc.ShardReplica m = input.readMessage( io.milvus.grpc.ShardReplica.parser(), extensionRegistry); if (shardReplicasBuilder_ == null) { ensureShardReplicasIsMutable(); shardReplicas_.add(m); } else { shardReplicasBuilder_.addMessage(m); } break; } // case 34 case 40: { long v = input.readInt64(); ensureNodeIdsIsMutable(); nodeIds_.addLong(v); break; } // case 40 case 42: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureNodeIdsIsMutable(); while (input.getBytesUntilLimit() > 0) { nodeIds_.addLong(input.readInt64()); } input.popLimit(limit); break; } // case 42 case 50: { resourceGroupName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { com.google.protobuf.MapEntry numOutboundNode__ = input.readMessage( NumOutboundNodeDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableNumOutboundNode().getMutableMap().put( numOutboundNode__.getKey(), numOutboundNode__.getValue()); bitField0_ |= 0x00000040; break; } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 replicaID = 1; * @return This builder for chaining. */ public Builder clearReplicaID() { bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 collectionID = 2; * @return This builder for chaining. */ public Builder clearCollectionID() { bitField0_ = (bitField0_ & ~0x00000002); collectionID_ = 0L; onChanged(); return this; } private com.google.protobuf.Internal.LongList partitionIds_ = emptyLongList(); private void ensurePartitionIdsIsMutable() { if (!partitionIds_.isModifiable()) { partitionIds_ = makeMutableCopy(partitionIds_); } bitField0_ |= 0x00000004; } /** *
     * empty indicates to load collection
     * 
* * repeated int64 partition_ids = 3; * @return A list containing the partitionIds. */ public java.util.List getPartitionIdsList() { partitionIds_.makeImmutable(); 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); } /** *
     * 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); bitField0_ |= 0x00000004; 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); bitField0_ |= 0x00000004; 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_); bitField0_ |= 0x00000004; 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_ & ~0x00000004); onChanged(); return this; } private java.util.List shardReplicas_ = java.util.Collections.emptyList(); private void ensureShardReplicasIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { shardReplicas_ = new java.util.ArrayList(shardReplicas_); bitField0_ |= 0x00000008; } } 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_ & ~0x00000008); 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_ & 0x00000008) != 0), getParentForChildren(), isClean()); shardReplicas_ = null; } return shardReplicasBuilder_; } private com.google.protobuf.Internal.LongList nodeIds_ = emptyLongList(); private void ensureNodeIdsIsMutable() { if (!nodeIds_.isModifiable()) { nodeIds_ = makeMutableCopy(nodeIds_); } bitField0_ |= 0x00000010; } /** *
     * include leaders
     * 
* * repeated int64 node_ids = 5; * @return A list containing the nodeIds. */ public java.util.List getNodeIdsList() { nodeIds_.makeImmutable(); 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); } /** *
     * 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); bitField0_ |= 0x00000010; 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); bitField0_ |= 0x00000010; 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_); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * include leaders
     * 
* * repeated int64 node_ids = 5; * @return This builder for chaining. */ public Builder clearNodeIds() { nodeIds_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } private java.lang.Object resourceGroupName_ = ""; /** * string resource_group_name = 6; * @return The resourceGroupName. */ public java.lang.String getResourceGroupName() { java.lang.Object ref = resourceGroupName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceGroupName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string resource_group_name = 6; * @return The bytes for resourceGroupName. */ public com.google.protobuf.ByteString getResourceGroupNameBytes() { java.lang.Object ref = resourceGroupName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); resourceGroupName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string resource_group_name = 6; * @param value The resourceGroupName to set. * @return This builder for chaining. */ public Builder setResourceGroupName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } resourceGroupName_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * string resource_group_name = 6; * @return This builder for chaining. */ public Builder clearResourceGroupName() { resourceGroupName_ = getDefaultInstance().getResourceGroupName(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * string resource_group_name = 6; * @param value The bytes for resourceGroupName to set. * @return This builder for chaining. */ public Builder setResourceGroupNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resourceGroupName_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.Integer> numOutboundNode_; private com.google.protobuf.MapField internalGetNumOutboundNode() { if (numOutboundNode_ == null) { return com.google.protobuf.MapField.emptyMapField( NumOutboundNodeDefaultEntryHolder.defaultEntry); } return numOutboundNode_; } private com.google.protobuf.MapField internalGetMutableNumOutboundNode() { if (numOutboundNode_ == null) { numOutboundNode_ = com.google.protobuf.MapField.newMapField( NumOutboundNodeDefaultEntryHolder.defaultEntry); } if (!numOutboundNode_.isMutable()) { numOutboundNode_ = numOutboundNode_.copy(); } bitField0_ |= 0x00000040; onChanged(); return numOutboundNode_; } public int getNumOutboundNodeCount() { return internalGetNumOutboundNode().getMap().size(); } /** *
     * outbound access rg -> node num
     * 
* * map<string, int32> num_outbound_node = 7; */ @java.lang.Override public boolean containsNumOutboundNode( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetNumOutboundNode().getMap().containsKey(key); } /** * Use {@link #getNumOutboundNodeMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getNumOutboundNode() { return getNumOutboundNodeMap(); } /** *
     * outbound access rg -> node num
     * 
* * map<string, int32> num_outbound_node = 7; */ @java.lang.Override public java.util.Map getNumOutboundNodeMap() { return internalGetNumOutboundNode().getMap(); } /** *
     * outbound access rg -> node num
     * 
* * map<string, int32> num_outbound_node = 7; */ @java.lang.Override public int getNumOutboundNodeOrDefault( java.lang.String key, int defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetNumOutboundNode().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * outbound access rg -> node num
     * 
* * map<string, int32> num_outbound_node = 7; */ @java.lang.Override public int getNumOutboundNodeOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetNumOutboundNode().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearNumOutboundNode() { bitField0_ = (bitField0_ & ~0x00000040); internalGetMutableNumOutboundNode().getMutableMap() .clear(); return this; } /** *
     * outbound access rg -> node num
     * 
* * map<string, int32> num_outbound_node = 7; */ public Builder removeNumOutboundNode( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableNumOutboundNode().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableNumOutboundNode() { bitField0_ |= 0x00000040; return internalGetMutableNumOutboundNode().getMutableMap(); } /** *
     * outbound access rg -> node num
     * 
* * map<string, int32> num_outbound_node = 7; */ public Builder putNumOutboundNode( java.lang.String key, int value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableNumOutboundNode().getMutableMap() .put(key, value); bitField0_ |= 0x00000040; return this; } /** *
     * outbound access rg -> node num
     * 
* * map<string, int32> num_outbound_node = 7; */ public Builder putAllNumOutboundNode( java.util.Map values) { internalGetMutableNumOutboundNode().getMutableMap() .putAll(values); bitField0_ |= 0x00000040; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.milvus.grpc.ReplicaInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy