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

io.milvus.grpc.ResourceGroup 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;

/**
 * Protobuf type {@code milvus.proto.milvus.ResourceGroup}
 */
public final class ResourceGroup extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:milvus.proto.milvus.ResourceGroup)
    ResourceGroupOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ResourceGroup.newBuilder() to construct.
  private ResourceGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ResourceGroup() {
    name_ = "";
    nodes_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new ResourceGroup();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_ResourceGroup_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(
      int number) {
    switch (number) {
      case 4:
        return internalGetNumLoadedReplica();
      case 5:
        return internalGetNumOutgoingNode();
      case 6:
        return internalGetNumIncomingNode();
      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_ResourceGroup_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.milvus.grpc.ResourceGroup.class, io.milvus.grpc.ResourceGroup.Builder.class);
  }

  private int bitField0_;
  public static final int NAME_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private volatile java.lang.Object name_ = "";
  /**
   * string name = 1;
   * @return The name.
   */
  @java.lang.Override
  public java.lang.String getName() {
    java.lang.Object ref = name_;
    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();
      name_ = s;
      return s;
    }
  }
  /**
   * string name = 1;
   * @return The bytes for name.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getNameBytes() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      name_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CAPACITY_FIELD_NUMBER = 2;
  private int capacity_ = 0;
  /**
   * int32 capacity = 2;
   * @return The capacity.
   */
  @java.lang.Override
  public int getCapacity() {
    return capacity_;
  }

  public static final int NUM_AVAILABLE_NODE_FIELD_NUMBER = 3;
  private int numAvailableNode_ = 0;
  /**
   * int32 num_available_node = 3;
   * @return The numAvailableNode.
   */
  @java.lang.Override
  public int getNumAvailableNode() {
    return numAvailableNode_;
  }

  public static final int NUM_LOADED_REPLICA_FIELD_NUMBER = 4;
  private static final class NumLoadedReplicaDefaultEntryHolder {
    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_ResourceGroup_NumLoadedReplicaEntry_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> numLoadedReplica_;
  private com.google.protobuf.MapField
  internalGetNumLoadedReplica() {
    if (numLoadedReplica_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          NumLoadedReplicaDefaultEntryHolder.defaultEntry);
    }
    return numLoadedReplica_;
  }
  public int getNumLoadedReplicaCount() {
    return internalGetNumLoadedReplica().getMap().size();
  }
  /**
   * 
   * collection name -> loaded replica num
   * 
* * map<string, int32> num_loaded_replica = 4; */ @java.lang.Override public boolean containsNumLoadedReplica( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetNumLoadedReplica().getMap().containsKey(key); } /** * Use {@link #getNumLoadedReplicaMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getNumLoadedReplica() { return getNumLoadedReplicaMap(); } /** *
   * collection name -> loaded replica num
   * 
* * map<string, int32> num_loaded_replica = 4; */ @java.lang.Override public java.util.Map getNumLoadedReplicaMap() { return internalGetNumLoadedReplica().getMap(); } /** *
   * collection name -> loaded replica num
   * 
* * map<string, int32> num_loaded_replica = 4; */ @java.lang.Override public int getNumLoadedReplicaOrDefault( java.lang.String key, int defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetNumLoadedReplica().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   * collection name -> loaded replica num
   * 
* * map<string, int32> num_loaded_replica = 4; */ @java.lang.Override public int getNumLoadedReplicaOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetNumLoadedReplica().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int NUM_OUTGOING_NODE_FIELD_NUMBER = 5; private static final class NumOutgoingNodeDefaultEntryHolder { 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_ResourceGroup_NumOutgoingNodeEntry_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> numOutgoingNode_; private com.google.protobuf.MapField internalGetNumOutgoingNode() { if (numOutgoingNode_ == null) { return com.google.protobuf.MapField.emptyMapField( NumOutgoingNodeDefaultEntryHolder.defaultEntry); } return numOutgoingNode_; } public int getNumOutgoingNodeCount() { return internalGetNumOutgoingNode().getMap().size(); } /** *
   * collection name -> accessed other rg's node num
   * 
* * map<string, int32> num_outgoing_node = 5; */ @java.lang.Override public boolean containsNumOutgoingNode( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetNumOutgoingNode().getMap().containsKey(key); } /** * Use {@link #getNumOutgoingNodeMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getNumOutgoingNode() { return getNumOutgoingNodeMap(); } /** *
   * collection name -> accessed other rg's node num
   * 
* * map<string, int32> num_outgoing_node = 5; */ @java.lang.Override public java.util.Map getNumOutgoingNodeMap() { return internalGetNumOutgoingNode().getMap(); } /** *
   * collection name -> accessed other rg's node num
   * 
* * map<string, int32> num_outgoing_node = 5; */ @java.lang.Override public int getNumOutgoingNodeOrDefault( java.lang.String key, int defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetNumOutgoingNode().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   * collection name -> accessed other rg's node num
   * 
* * map<string, int32> num_outgoing_node = 5; */ @java.lang.Override public int getNumOutgoingNodeOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetNumOutgoingNode().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int NUM_INCOMING_NODE_FIELD_NUMBER = 6; private static final class NumIncomingNodeDefaultEntryHolder { 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_ResourceGroup_NumIncomingNodeEntry_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> numIncomingNode_; private com.google.protobuf.MapField internalGetNumIncomingNode() { if (numIncomingNode_ == null) { return com.google.protobuf.MapField.emptyMapField( NumIncomingNodeDefaultEntryHolder.defaultEntry); } return numIncomingNode_; } public int getNumIncomingNodeCount() { return internalGetNumIncomingNode().getMap().size(); } /** *
   * collection name -> be accessed node num by other rg
   * 
* * map<string, int32> num_incoming_node = 6; */ @java.lang.Override public boolean containsNumIncomingNode( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetNumIncomingNode().getMap().containsKey(key); } /** * Use {@link #getNumIncomingNodeMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getNumIncomingNode() { return getNumIncomingNodeMap(); } /** *
   * collection name -> be accessed node num by other rg
   * 
* * map<string, int32> num_incoming_node = 6; */ @java.lang.Override public java.util.Map getNumIncomingNodeMap() { return internalGetNumIncomingNode().getMap(); } /** *
   * collection name -> be accessed node num by other rg
   * 
* * map<string, int32> num_incoming_node = 6; */ @java.lang.Override public int getNumIncomingNodeOrDefault( java.lang.String key, int defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetNumIncomingNode().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   * collection name -> be accessed node num by other rg
   * 
* * map<string, int32> num_incoming_node = 6; */ @java.lang.Override public int getNumIncomingNodeOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetNumIncomingNode().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int CONFIG_FIELD_NUMBER = 7; private io.milvus.grpc.ResourceGroupConfig config_; /** *
   * resource group configuration.
   * 
* * .milvus.proto.rg.ResourceGroupConfig config = 7; * @return Whether the config field is set. */ @java.lang.Override public boolean hasConfig() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * resource group configuration.
   * 
* * .milvus.proto.rg.ResourceGroupConfig config = 7; * @return The config. */ @java.lang.Override public io.milvus.grpc.ResourceGroupConfig getConfig() { return config_ == null ? io.milvus.grpc.ResourceGroupConfig.getDefaultInstance() : config_; } /** *
   * resource group configuration.
   * 
* * .milvus.proto.rg.ResourceGroupConfig config = 7; */ @java.lang.Override public io.milvus.grpc.ResourceGroupConfigOrBuilder getConfigOrBuilder() { return config_ == null ? io.milvus.grpc.ResourceGroupConfig.getDefaultInstance() : config_; } public static final int NODES_FIELD_NUMBER = 8; @SuppressWarnings("serial") private java.util.List nodes_; /** *
   * query node belong to this resource group now.
   * 
* * repeated .milvus.proto.common.NodeInfo nodes = 8; */ @java.lang.Override public java.util.List getNodesList() { return nodes_; } /** *
   * query node belong to this resource group now.
   * 
* * repeated .milvus.proto.common.NodeInfo nodes = 8; */ @java.lang.Override public java.util.List getNodesOrBuilderList() { return nodes_; } /** *
   * query node belong to this resource group now.
   * 
* * repeated .milvus.proto.common.NodeInfo nodes = 8; */ @java.lang.Override public int getNodesCount() { return nodes_.size(); } /** *
   * query node belong to this resource group now.
   * 
* * repeated .milvus.proto.common.NodeInfo nodes = 8; */ @java.lang.Override public io.milvus.grpc.NodeInfo getNodes(int index) { return nodes_.get(index); } /** *
   * query node belong to this resource group now.
   * 
* * repeated .milvus.proto.common.NodeInfo nodes = 8; */ @java.lang.Override public io.milvus.grpc.NodeInfoOrBuilder getNodesOrBuilder( int index) { return nodes_.get(index); } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (capacity_ != 0) { output.writeInt32(2, capacity_); } if (numAvailableNode_ != 0) { output.writeInt32(3, numAvailableNode_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetNumLoadedReplica(), NumLoadedReplicaDefaultEntryHolder.defaultEntry, 4); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetNumOutgoingNode(), NumOutgoingNodeDefaultEntryHolder.defaultEntry, 5); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetNumIncomingNode(), NumIncomingNodeDefaultEntryHolder.defaultEntry, 6); if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(7, getConfig()); } for (int i = 0; i < nodes_.size(); i++) { output.writeMessage(8, nodes_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (capacity_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, capacity_); } if (numAvailableNode_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, numAvailableNode_); } for (java.util.Map.Entry entry : internalGetNumLoadedReplica().getMap().entrySet()) { com.google.protobuf.MapEntry numLoadedReplica__ = NumLoadedReplicaDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, numLoadedReplica__); } for (java.util.Map.Entry entry : internalGetNumOutgoingNode().getMap().entrySet()) { com.google.protobuf.MapEntry numOutgoingNode__ = NumOutgoingNodeDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, numOutgoingNode__); } for (java.util.Map.Entry entry : internalGetNumIncomingNode().getMap().entrySet()) { com.google.protobuf.MapEntry numIncomingNode__ = NumIncomingNodeDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, numIncomingNode__); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getConfig()); } for (int i = 0; i < nodes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, nodes_.get(i)); } 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.ResourceGroup)) { return super.equals(obj); } io.milvus.grpc.ResourceGroup other = (io.milvus.grpc.ResourceGroup) obj; if (!getName() .equals(other.getName())) return false; if (getCapacity() != other.getCapacity()) return false; if (getNumAvailableNode() != other.getNumAvailableNode()) return false; if (!internalGetNumLoadedReplica().equals( other.internalGetNumLoadedReplica())) return false; if (!internalGetNumOutgoingNode().equals( other.internalGetNumOutgoingNode())) return false; if (!internalGetNumIncomingNode().equals( other.internalGetNumIncomingNode())) return false; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { if (!getConfig() .equals(other.getConfig())) return false; } if (!getNodesList() .equals(other.getNodesList())) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + CAPACITY_FIELD_NUMBER; hash = (53 * hash) + getCapacity(); hash = (37 * hash) + NUM_AVAILABLE_NODE_FIELD_NUMBER; hash = (53 * hash) + getNumAvailableNode(); if (!internalGetNumLoadedReplica().getMap().isEmpty()) { hash = (37 * hash) + NUM_LOADED_REPLICA_FIELD_NUMBER; hash = (53 * hash) + internalGetNumLoadedReplica().hashCode(); } if (!internalGetNumOutgoingNode().getMap().isEmpty()) { hash = (37 * hash) + NUM_OUTGOING_NODE_FIELD_NUMBER; hash = (53 * hash) + internalGetNumOutgoingNode().hashCode(); } if (!internalGetNumIncomingNode().getMap().isEmpty()) { hash = (37 * hash) + NUM_INCOMING_NODE_FIELD_NUMBER; hash = (53 * hash) + internalGetNumIncomingNode().hashCode(); } if (hasConfig()) { hash = (37 * hash) + CONFIG_FIELD_NUMBER; hash = (53 * hash) + getConfig().hashCode(); } if (getNodesCount() > 0) { hash = (37 * hash) + NODES_FIELD_NUMBER; hash = (53 * hash) + getNodesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.milvus.grpc.ResourceGroup parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.milvus.grpc.ResourceGroup 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.ResourceGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.milvus.grpc.ResourceGroup 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.ResourceGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.milvus.grpc.ResourceGroup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.milvus.grpc.ResourceGroup parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.milvus.grpc.ResourceGroup 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.ResourceGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.milvus.grpc.ResourceGroup 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.ResourceGroup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.milvus.grpc.ResourceGroup 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.ResourceGroup 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; } /** * Protobuf type {@code milvus.proto.milvus.ResourceGroup} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:milvus.proto.milvus.ResourceGroup) io.milvus.grpc.ResourceGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_ResourceGroup_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 4: return internalGetNumLoadedReplica(); case 5: return internalGetNumOutgoingNode(); case 6: return internalGetNumIncomingNode(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 4: return internalGetMutableNumLoadedReplica(); case 5: return internalGetMutableNumOutgoingNode(); case 6: return internalGetMutableNumIncomingNode(); 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_ResourceGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( io.milvus.grpc.ResourceGroup.class, io.milvus.grpc.ResourceGroup.Builder.class); } // Construct using io.milvus.grpc.ResourceGroup.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getConfigFieldBuilder(); getNodesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; capacity_ = 0; numAvailableNode_ = 0; internalGetMutableNumLoadedReplica().clear(); internalGetMutableNumOutgoingNode().clear(); internalGetMutableNumIncomingNode().clear(); config_ = null; if (configBuilder_ != null) { configBuilder_.dispose(); configBuilder_ = null; } if (nodesBuilder_ == null) { nodes_ = java.util.Collections.emptyList(); } else { nodes_ = null; nodesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_ResourceGroup_descriptor; } @java.lang.Override public io.milvus.grpc.ResourceGroup getDefaultInstanceForType() { return io.milvus.grpc.ResourceGroup.getDefaultInstance(); } @java.lang.Override public io.milvus.grpc.ResourceGroup build() { io.milvus.grpc.ResourceGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.milvus.grpc.ResourceGroup buildPartial() { io.milvus.grpc.ResourceGroup result = new io.milvus.grpc.ResourceGroup(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.milvus.grpc.ResourceGroup result) { if (nodesBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0)) { nodes_ = java.util.Collections.unmodifiableList(nodes_); bitField0_ = (bitField0_ & ~0x00000080); } result.nodes_ = nodes_; } else { result.nodes_ = nodesBuilder_.build(); } } private void buildPartial0(io.milvus.grpc.ResourceGroup result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.capacity_ = capacity_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.numAvailableNode_ = numAvailableNode_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.numLoadedReplica_ = internalGetNumLoadedReplica(); result.numLoadedReplica_.makeImmutable(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.numOutgoingNode_ = internalGetNumOutgoingNode(); result.numOutgoingNode_.makeImmutable(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.numIncomingNode_ = internalGetNumIncomingNode(); result.numIncomingNode_.makeImmutable(); } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000040) != 0)) { result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.milvus.grpc.ResourceGroup) { return mergeFrom((io.milvus.grpc.ResourceGroup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.milvus.grpc.ResourceGroup other) { if (other == io.milvus.grpc.ResourceGroup.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.getCapacity() != 0) { setCapacity(other.getCapacity()); } if (other.getNumAvailableNode() != 0) { setNumAvailableNode(other.getNumAvailableNode()); } internalGetMutableNumLoadedReplica().mergeFrom( other.internalGetNumLoadedReplica()); bitField0_ |= 0x00000008; internalGetMutableNumOutgoingNode().mergeFrom( other.internalGetNumOutgoingNode()); bitField0_ |= 0x00000010; internalGetMutableNumIncomingNode().mergeFrom( other.internalGetNumIncomingNode()); bitField0_ |= 0x00000020; if (other.hasConfig()) { mergeConfig(other.getConfig()); } if (nodesBuilder_ == null) { if (!other.nodes_.isEmpty()) { if (nodes_.isEmpty()) { nodes_ = other.nodes_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureNodesIsMutable(); nodes_.addAll(other.nodes_); } onChanged(); } } else { if (!other.nodes_.isEmpty()) { if (nodesBuilder_.isEmpty()) { nodesBuilder_.dispose(); nodesBuilder_ = null; nodes_ = other.nodes_; bitField0_ = (bitField0_ & ~0x00000080); nodesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getNodesFieldBuilder() : null; } else { nodesBuilder_.addAllMessages(other.nodes_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { capacity_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { numAvailableNode_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { com.google.protobuf.MapEntry numLoadedReplica__ = input.readMessage( NumLoadedReplicaDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableNumLoadedReplica().getMutableMap().put( numLoadedReplica__.getKey(), numLoadedReplica__.getValue()); bitField0_ |= 0x00000008; break; } // case 34 case 42: { com.google.protobuf.MapEntry numOutgoingNode__ = input.readMessage( NumOutgoingNodeDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableNumOutgoingNode().getMutableMap().put( numOutgoingNode__.getKey(), numOutgoingNode__.getValue()); bitField0_ |= 0x00000010; break; } // case 42 case 50: { com.google.protobuf.MapEntry numIncomingNode__ = input.readMessage( NumIncomingNodeDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableNumIncomingNode().getMutableMap().put( numIncomingNode__.getKey(), numIncomingNode__.getValue()); bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage( getConfigFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 58 case 66: { io.milvus.grpc.NodeInfo m = input.readMessage( io.milvus.grpc.NodeInfo.parser(), extensionRegistry); if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.add(m); } else { nodesBuilder_.addMessage(m); } break; } // case 66 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 java.lang.Object name_ = ""; /** * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int capacity_ ; /** * int32 capacity = 2; * @return The capacity. */ @java.lang.Override public int getCapacity() { return capacity_; } /** * int32 capacity = 2; * @param value The capacity to set. * @return This builder for chaining. */ public Builder setCapacity(int value) { capacity_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int32 capacity = 2; * @return This builder for chaining. */ public Builder clearCapacity() { bitField0_ = (bitField0_ & ~0x00000002); capacity_ = 0; onChanged(); return this; } private int numAvailableNode_ ; /** * int32 num_available_node = 3; * @return The numAvailableNode. */ @java.lang.Override public int getNumAvailableNode() { return numAvailableNode_; } /** * int32 num_available_node = 3; * @param value The numAvailableNode to set. * @return This builder for chaining. */ public Builder setNumAvailableNode(int value) { numAvailableNode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int32 num_available_node = 3; * @return This builder for chaining. */ public Builder clearNumAvailableNode() { bitField0_ = (bitField0_ & ~0x00000004); numAvailableNode_ = 0; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.Integer> numLoadedReplica_; private com.google.protobuf.MapField internalGetNumLoadedReplica() { if (numLoadedReplica_ == null) { return com.google.protobuf.MapField.emptyMapField( NumLoadedReplicaDefaultEntryHolder.defaultEntry); } return numLoadedReplica_; } private com.google.protobuf.MapField internalGetMutableNumLoadedReplica() { if (numLoadedReplica_ == null) { numLoadedReplica_ = com.google.protobuf.MapField.newMapField( NumLoadedReplicaDefaultEntryHolder.defaultEntry); } if (!numLoadedReplica_.isMutable()) { numLoadedReplica_ = numLoadedReplica_.copy(); } bitField0_ |= 0x00000008; onChanged(); return numLoadedReplica_; } public int getNumLoadedReplicaCount() { return internalGetNumLoadedReplica().getMap().size(); } /** *
     * collection name -> loaded replica num
     * 
* * map<string, int32> num_loaded_replica = 4; */ @java.lang.Override public boolean containsNumLoadedReplica( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetNumLoadedReplica().getMap().containsKey(key); } /** * Use {@link #getNumLoadedReplicaMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getNumLoadedReplica() { return getNumLoadedReplicaMap(); } /** *
     * collection name -> loaded replica num
     * 
* * map<string, int32> num_loaded_replica = 4; */ @java.lang.Override public java.util.Map getNumLoadedReplicaMap() { return internalGetNumLoadedReplica().getMap(); } /** *
     * collection name -> loaded replica num
     * 
* * map<string, int32> num_loaded_replica = 4; */ @java.lang.Override public int getNumLoadedReplicaOrDefault( java.lang.String key, int defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetNumLoadedReplica().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * collection name -> loaded replica num
     * 
* * map<string, int32> num_loaded_replica = 4; */ @java.lang.Override public int getNumLoadedReplicaOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetNumLoadedReplica().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearNumLoadedReplica() { bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableNumLoadedReplica().getMutableMap() .clear(); return this; } /** *
     * collection name -> loaded replica num
     * 
* * map<string, int32> num_loaded_replica = 4; */ public Builder removeNumLoadedReplica( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableNumLoadedReplica().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableNumLoadedReplica() { bitField0_ |= 0x00000008; return internalGetMutableNumLoadedReplica().getMutableMap(); } /** *
     * collection name -> loaded replica num
     * 
* * map<string, int32> num_loaded_replica = 4; */ public Builder putNumLoadedReplica( java.lang.String key, int value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableNumLoadedReplica().getMutableMap() .put(key, value); bitField0_ |= 0x00000008; return this; } /** *
     * collection name -> loaded replica num
     * 
* * map<string, int32> num_loaded_replica = 4; */ public Builder putAllNumLoadedReplica( java.util.Map values) { internalGetMutableNumLoadedReplica().getMutableMap() .putAll(values); bitField0_ |= 0x00000008; return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.Integer> numOutgoingNode_; private com.google.protobuf.MapField internalGetNumOutgoingNode() { if (numOutgoingNode_ == null) { return com.google.protobuf.MapField.emptyMapField( NumOutgoingNodeDefaultEntryHolder.defaultEntry); } return numOutgoingNode_; } private com.google.protobuf.MapField internalGetMutableNumOutgoingNode() { if (numOutgoingNode_ == null) { numOutgoingNode_ = com.google.protobuf.MapField.newMapField( NumOutgoingNodeDefaultEntryHolder.defaultEntry); } if (!numOutgoingNode_.isMutable()) { numOutgoingNode_ = numOutgoingNode_.copy(); } bitField0_ |= 0x00000010; onChanged(); return numOutgoingNode_; } public int getNumOutgoingNodeCount() { return internalGetNumOutgoingNode().getMap().size(); } /** *
     * collection name -> accessed other rg's node num
     * 
* * map<string, int32> num_outgoing_node = 5; */ @java.lang.Override public boolean containsNumOutgoingNode( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetNumOutgoingNode().getMap().containsKey(key); } /** * Use {@link #getNumOutgoingNodeMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getNumOutgoingNode() { return getNumOutgoingNodeMap(); } /** *
     * collection name -> accessed other rg's node num
     * 
* * map<string, int32> num_outgoing_node = 5; */ @java.lang.Override public java.util.Map getNumOutgoingNodeMap() { return internalGetNumOutgoingNode().getMap(); } /** *
     * collection name -> accessed other rg's node num
     * 
* * map<string, int32> num_outgoing_node = 5; */ @java.lang.Override public int getNumOutgoingNodeOrDefault( java.lang.String key, int defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetNumOutgoingNode().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * collection name -> accessed other rg's node num
     * 
* * map<string, int32> num_outgoing_node = 5; */ @java.lang.Override public int getNumOutgoingNodeOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetNumOutgoingNode().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearNumOutgoingNode() { bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableNumOutgoingNode().getMutableMap() .clear(); return this; } /** *
     * collection name -> accessed other rg's node num
     * 
* * map<string, int32> num_outgoing_node = 5; */ public Builder removeNumOutgoingNode( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableNumOutgoingNode().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableNumOutgoingNode() { bitField0_ |= 0x00000010; return internalGetMutableNumOutgoingNode().getMutableMap(); } /** *
     * collection name -> accessed other rg's node num
     * 
* * map<string, int32> num_outgoing_node = 5; */ public Builder putNumOutgoingNode( java.lang.String key, int value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableNumOutgoingNode().getMutableMap() .put(key, value); bitField0_ |= 0x00000010; return this; } /** *
     * collection name -> accessed other rg's node num
     * 
* * map<string, int32> num_outgoing_node = 5; */ public Builder putAllNumOutgoingNode( java.util.Map values) { internalGetMutableNumOutgoingNode().getMutableMap() .putAll(values); bitField0_ |= 0x00000010; return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.Integer> numIncomingNode_; private com.google.protobuf.MapField internalGetNumIncomingNode() { if (numIncomingNode_ == null) { return com.google.protobuf.MapField.emptyMapField( NumIncomingNodeDefaultEntryHolder.defaultEntry); } return numIncomingNode_; } private com.google.protobuf.MapField internalGetMutableNumIncomingNode() { if (numIncomingNode_ == null) { numIncomingNode_ = com.google.protobuf.MapField.newMapField( NumIncomingNodeDefaultEntryHolder.defaultEntry); } if (!numIncomingNode_.isMutable()) { numIncomingNode_ = numIncomingNode_.copy(); } bitField0_ |= 0x00000020; onChanged(); return numIncomingNode_; } public int getNumIncomingNodeCount() { return internalGetNumIncomingNode().getMap().size(); } /** *
     * collection name -> be accessed node num by other rg
     * 
* * map<string, int32> num_incoming_node = 6; */ @java.lang.Override public boolean containsNumIncomingNode( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetNumIncomingNode().getMap().containsKey(key); } /** * Use {@link #getNumIncomingNodeMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getNumIncomingNode() { return getNumIncomingNodeMap(); } /** *
     * collection name -> be accessed node num by other rg
     * 
* * map<string, int32> num_incoming_node = 6; */ @java.lang.Override public java.util.Map getNumIncomingNodeMap() { return internalGetNumIncomingNode().getMap(); } /** *
     * collection name -> be accessed node num by other rg
     * 
* * map<string, int32> num_incoming_node = 6; */ @java.lang.Override public int getNumIncomingNodeOrDefault( java.lang.String key, int defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetNumIncomingNode().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * collection name -> be accessed node num by other rg
     * 
* * map<string, int32> num_incoming_node = 6; */ @java.lang.Override public int getNumIncomingNodeOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetNumIncomingNode().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearNumIncomingNode() { bitField0_ = (bitField0_ & ~0x00000020); internalGetMutableNumIncomingNode().getMutableMap() .clear(); return this; } /** *
     * collection name -> be accessed node num by other rg
     * 
* * map<string, int32> num_incoming_node = 6; */ public Builder removeNumIncomingNode( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableNumIncomingNode().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableNumIncomingNode() { bitField0_ |= 0x00000020; return internalGetMutableNumIncomingNode().getMutableMap(); } /** *
     * collection name -> be accessed node num by other rg
     * 
* * map<string, int32> num_incoming_node = 6; */ public Builder putNumIncomingNode( java.lang.String key, int value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableNumIncomingNode().getMutableMap() .put(key, value); bitField0_ |= 0x00000020; return this; } /** *
     * collection name -> be accessed node num by other rg
     * 
* * map<string, int32> num_incoming_node = 6; */ public Builder putAllNumIncomingNode( java.util.Map values) { internalGetMutableNumIncomingNode().getMutableMap() .putAll(values); bitField0_ |= 0x00000020; return this; } private io.milvus.grpc.ResourceGroupConfig config_; private com.google.protobuf.SingleFieldBuilderV3< io.milvus.grpc.ResourceGroupConfig, io.milvus.grpc.ResourceGroupConfig.Builder, io.milvus.grpc.ResourceGroupConfigOrBuilder> configBuilder_; /** *
     * resource group configuration.
     * 
* * .milvus.proto.rg.ResourceGroupConfig config = 7; * @return Whether the config field is set. */ public boolean hasConfig() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * resource group configuration.
     * 
* * .milvus.proto.rg.ResourceGroupConfig config = 7; * @return The config. */ public io.milvus.grpc.ResourceGroupConfig getConfig() { if (configBuilder_ == null) { return config_ == null ? io.milvus.grpc.ResourceGroupConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** *
     * resource group configuration.
     * 
* * .milvus.proto.rg.ResourceGroupConfig config = 7; */ public Builder setConfig(io.milvus.grpc.ResourceGroupConfig value) { if (configBuilder_ == null) { if (value == null) { throw new NullPointerException(); } config_ = value; } else { configBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * resource group configuration.
     * 
* * .milvus.proto.rg.ResourceGroupConfig config = 7; */ public Builder setConfig( io.milvus.grpc.ResourceGroupConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); } else { configBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * resource group configuration.
     * 
* * .milvus.proto.rg.ResourceGroupConfig config = 7; */ public Builder mergeConfig(io.milvus.grpc.ResourceGroupConfig value) { if (configBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && config_ != null && config_ != io.milvus.grpc.ResourceGroupConfig.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; } } else { configBuilder_.mergeFrom(value); } if (config_ != null) { bitField0_ |= 0x00000040; onChanged(); } return this; } /** *
     * resource group configuration.
     * 
* * .milvus.proto.rg.ResourceGroupConfig config = 7; */ public Builder clearConfig() { bitField0_ = (bitField0_ & ~0x00000040); config_ = null; if (configBuilder_ != null) { configBuilder_.dispose(); configBuilder_ = null; } onChanged(); return this; } /** *
     * resource group configuration.
     * 
* * .milvus.proto.rg.ResourceGroupConfig config = 7; */ public io.milvus.grpc.ResourceGroupConfig.Builder getConfigBuilder() { bitField0_ |= 0x00000040; onChanged(); return getConfigFieldBuilder().getBuilder(); } /** *
     * resource group configuration.
     * 
* * .milvus.proto.rg.ResourceGroupConfig config = 7; */ public io.milvus.grpc.ResourceGroupConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { return config_ == null ? io.milvus.grpc.ResourceGroupConfig.getDefaultInstance() : config_; } } /** *
     * resource group configuration.
     * 
* * .milvus.proto.rg.ResourceGroupConfig config = 7; */ private com.google.protobuf.SingleFieldBuilderV3< io.milvus.grpc.ResourceGroupConfig, io.milvus.grpc.ResourceGroupConfig.Builder, io.milvus.grpc.ResourceGroupConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.milvus.grpc.ResourceGroupConfig, io.milvus.grpc.ResourceGroupConfig.Builder, io.milvus.grpc.ResourceGroupConfigOrBuilder>( getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; } private java.util.List nodes_ = java.util.Collections.emptyList(); private void ensureNodesIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { nodes_ = new java.util.ArrayList(nodes_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.milvus.grpc.NodeInfo, io.milvus.grpc.NodeInfo.Builder, io.milvus.grpc.NodeInfoOrBuilder> nodesBuilder_; /** *
     * query node belong to this resource group now.
     * 
* * repeated .milvus.proto.common.NodeInfo nodes = 8; */ public java.util.List getNodesList() { if (nodesBuilder_ == null) { return java.util.Collections.unmodifiableList(nodes_); } else { return nodesBuilder_.getMessageList(); } } /** *
     * query node belong to this resource group now.
     * 
* * repeated .milvus.proto.common.NodeInfo nodes = 8; */ public int getNodesCount() { if (nodesBuilder_ == null) { return nodes_.size(); } else { return nodesBuilder_.getCount(); } } /** *
     * query node belong to this resource group now.
     * 
* * repeated .milvus.proto.common.NodeInfo nodes = 8; */ public io.milvus.grpc.NodeInfo getNodes(int index) { if (nodesBuilder_ == null) { return nodes_.get(index); } else { return nodesBuilder_.getMessage(index); } } /** *
     * query node belong to this resource group now.
     * 
* * repeated .milvus.proto.common.NodeInfo nodes = 8; */ public Builder setNodes( int index, io.milvus.grpc.NodeInfo value) { if (nodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNodesIsMutable(); nodes_.set(index, value); onChanged(); } else { nodesBuilder_.setMessage(index, value); } return this; } /** *
     * query node belong to this resource group now.
     * 
* * repeated .milvus.proto.common.NodeInfo nodes = 8; */ public Builder setNodes( int index, io.milvus.grpc.NodeInfo.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.set(index, builderForValue.build()); onChanged(); } else { nodesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * query node belong to this resource group now.
     * 
* * repeated .milvus.proto.common.NodeInfo nodes = 8; */ public Builder addNodes(io.milvus.grpc.NodeInfo value) { if (nodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNodesIsMutable(); nodes_.add(value); onChanged(); } else { nodesBuilder_.addMessage(value); } return this; } /** *
     * query node belong to this resource group now.
     * 
* * repeated .milvus.proto.common.NodeInfo nodes = 8; */ public Builder addNodes( int index, io.milvus.grpc.NodeInfo value) { if (nodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNodesIsMutable(); nodes_.add(index, value); onChanged(); } else { nodesBuilder_.addMessage(index, value); } return this; } /** *
     * query node belong to this resource group now.
     * 
* * repeated .milvus.proto.common.NodeInfo nodes = 8; */ public Builder addNodes( io.milvus.grpc.NodeInfo.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.add(builderForValue.build()); onChanged(); } else { nodesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * query node belong to this resource group now.
     * 
* * repeated .milvus.proto.common.NodeInfo nodes = 8; */ public Builder addNodes( int index, io.milvus.grpc.NodeInfo.Builder builderForValue) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.add(index, builderForValue.build()); onChanged(); } else { nodesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * query node belong to this resource group now.
     * 
* * repeated .milvus.proto.common.NodeInfo nodes = 8; */ public Builder addAllNodes( java.lang.Iterable values) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, nodes_); onChanged(); } else { nodesBuilder_.addAllMessages(values); } return this; } /** *
     * query node belong to this resource group now.
     * 
* * repeated .milvus.proto.common.NodeInfo nodes = 8; */ public Builder clearNodes() { if (nodesBuilder_ == null) { nodes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { nodesBuilder_.clear(); } return this; } /** *
     * query node belong to this resource group now.
     * 
* * repeated .milvus.proto.common.NodeInfo nodes = 8; */ public Builder removeNodes(int index) { if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.remove(index); onChanged(); } else { nodesBuilder_.remove(index); } return this; } /** *
     * query node belong to this resource group now.
     * 
* * repeated .milvus.proto.common.NodeInfo nodes = 8; */ public io.milvus.grpc.NodeInfo.Builder getNodesBuilder( int index) { return getNodesFieldBuilder().getBuilder(index); } /** *
     * query node belong to this resource group now.
     * 
* * repeated .milvus.proto.common.NodeInfo nodes = 8; */ public io.milvus.grpc.NodeInfoOrBuilder getNodesOrBuilder( int index) { if (nodesBuilder_ == null) { return nodes_.get(index); } else { return nodesBuilder_.getMessageOrBuilder(index); } } /** *
     * query node belong to this resource group now.
     * 
* * repeated .milvus.proto.common.NodeInfo nodes = 8; */ public java.util.List getNodesOrBuilderList() { if (nodesBuilder_ != null) { return nodesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(nodes_); } } /** *
     * query node belong to this resource group now.
     * 
* * repeated .milvus.proto.common.NodeInfo nodes = 8; */ public io.milvus.grpc.NodeInfo.Builder addNodesBuilder() { return getNodesFieldBuilder().addBuilder( io.milvus.grpc.NodeInfo.getDefaultInstance()); } /** *
     * query node belong to this resource group now.
     * 
* * repeated .milvus.proto.common.NodeInfo nodes = 8; */ public io.milvus.grpc.NodeInfo.Builder addNodesBuilder( int index) { return getNodesFieldBuilder().addBuilder( index, io.milvus.grpc.NodeInfo.getDefaultInstance()); } /** *
     * query node belong to this resource group now.
     * 
* * repeated .milvus.proto.common.NodeInfo nodes = 8; */ public java.util.List getNodesBuilderList() { return getNodesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.milvus.grpc.NodeInfo, io.milvus.grpc.NodeInfo.Builder, io.milvus.grpc.NodeInfoOrBuilder> getNodesFieldBuilder() { if (nodesBuilder_ == null) { nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.milvus.grpc.NodeInfo, io.milvus.grpc.NodeInfo.Builder, io.milvus.grpc.NodeInfoOrBuilder>( nodes_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); nodes_ = null; } return nodesBuilder_; } @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.ResourceGroup) } // @@protoc_insertion_point(class_scope:milvus.proto.milvus.ResourceGroup) private static final io.milvus.grpc.ResourceGroup DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.milvus.grpc.ResourceGroup(); } public static io.milvus.grpc.ResourceGroup getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResourceGroup 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.ResourceGroup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy