code: public boolean resourceNotReady(GoogleJsonError e) {
      ErrorInfo errorInfo = getErrorInfo(e);
      if (errorInfo != null) {
        String reason = errorInfo.getReason();
        return RESOURCE_NOT_READY_REASON_CODE.equals(reason);
      }
      return false;
    }
docs: Determines if the given GoogleJsonError indicates 'resource not ready'.