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