protected static UserQuotaState buildDefaultUserQuotaState(Configuration conf, long nowTs) {
    QuotaProtos.Throttle.Builder throttleBuilder = QuotaProtos.Throttle.newBuilder();

    buildDefaultTimedQuota(conf, QUOTA_DEFAULT_USER_MACHINE_READ_NUM)
      .ifPresent(throttleBuilder::setReadNum);
    buildDefaultTimedQuota(conf, QUOTA_DEFAULT_USER_MACHINE_READ_SIZE)
      .ifPresent(throttleBuilder::setReadSize);
    buildDefaultTimedQuota(conf, QUOTA_DEFAULT_USER_MACHINE_REQUEST_NUM)
      .ifPresent(throttleBuilder::setReqNum);
    buildDefaultTimedQuota(conf, QUOTA_DEFAULT_USER_MACHINE_REQUEST_SIZE)
      .ifPresent(throttleBuilder::setReqSize);
    buildDefaultTimedQuota(conf, QUOTA_DEFAULT_USER_MACHINE_WRITE_NUM)
      .ifPresent(throttleBuilder::setWriteNum);
    buildDefaultTimedQuota(conf, QUOTA_DEFAULT_USER_MACHINE_WRITE_SIZE)
      .ifPresent(throttleBuilder::setWriteSize);
    buildDefaultTimedQuota(conf, QUOTA_DEFAULT_USER_MACHINE_ATOMIC_READ_SIZE)
      .ifPresent(throttleBuilder::setAtomicReadSize);
    buildDefaultTimedQuota(conf, QUOTA_DEFAULT_USER_MACHINE_ATOMIC_REQUEST_NUM)
      .ifPresent(throttleBuilder::setAtomicReqNum);
    buildDefaultTimedQuota(conf, QUOTA_DEFAULT_USER_MACHINE_ATOMIC_WRITE_SIZE)
      .ifPresent(throttleBuilder::setAtomicWriteSize);
    buildDefaultTimedQuota(conf, QUOTA_DEFAULT_USER_MACHINE_REQUEST_HANDLER_USAGE_MS)
      .ifPresent(throttleBuilder::setReqHandlerUsageMs);

    UserQuotaState state = new UserQuotaState(nowTs);
    QuotaProtos.Quotas defaultQuotas =
      QuotaProtos.Quotas.newBuilder().setThrottle(throttleBuilder.build()).build();
    state.setQuotas(defaultQuotas);
    return state;
  }
Returns true if the support for quota is enabled
hbase-server/src/main/java/org/apache/hadoop/hbase/quotas/QuotaUtil.java