docs: public HttpMediaType setType(String type) {
      Preconditions.checkArgument(
          TYPE_REGEX.matcher(type).matches(), "Type contains reserved characters");
      this.type = type;
      cachedBuildResult = null;
      return this;
    }