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