code: public KeyFactory reset() {
      setProjectId(pi);
      setNamespace(ns);
      kind = null;
      ancestors.clear();
      return this;
    }
docs: Resets the KeyFactory to its initial state.
  
  @return {@code this} for chaining