public static QuotaProtos.QuotaScope toProtoQuotaScope(final QuotaScope scope) {
    switch (scope) {
      case CLUSTER:
        return QuotaProtos.QuotaScope.CLUSTER;
      case MACHINE:
        return QuotaProtos.QuotaScope.MACHINE;
    }
    throw new RuntimeException("Invalid QuotaScope " + scope);
  }
Convert a client QuotaScope to a protocol buffer QuotaScope
@return the converted protocol buffer QuotaScope
hbase-client/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/ProtobufUtil.java