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