public static ThrottleType toThrottleType(final QuotaProtos.ThrottleType proto) {
    switch (proto) {
      case REQUEST_NUMBER:
        return ThrottleType.REQUEST_NUMBER;
      case REQUEST_SIZE:
        return ThrottleType.REQUEST_SIZE;
      case REQUEST_CAPACITY_UNIT:
        return ThrottleType.REQUEST_CAPACITY_UNIT;
      case WRITE_NUMBER:
        return ThrottleType.WRITE_NUMBER;
      case WRITE_SIZE:
        return ThrottleType.WRITE_SIZE;
      case READ_NUMBER:
        return ThrottleType.READ_NUMBER;
      case READ_SIZE:
        return ThrottleType.READ_SIZE;
      case READ_CAPACITY_UNIT:
        return ThrottleType.READ_CAPACITY_UNIT;
      case WRITE_CAPACITY_UNIT:
        return ThrottleType.WRITE_CAPACITY_UNIT;
      case ATOMIC_READ_SIZE:
        return ThrottleType.ATOMIC_READ_SIZE;
      case ATOMIC_REQUEST_NUMBER:
        return ThrottleType.ATOMIC_REQUEST_NUMBER;
      case ATOMIC_WRITE_SIZE:
        return ThrottleType.ATOMIC_WRITE_SIZE;
      case REQUEST_HANDLER_USAGE_MS:
        return ThrottleType.REQUEST_HANDLER_USAGE_MS;
      default:
        throw new RuntimeException("Invalid ThrottleType " + proto);
    }
  }
Convert a protocol buffer ThrottleType to a client ThrottleType
@return the converted client ThrottleType
hbase-client/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/ProtobufUtil.java