public DataCatalogWriter build()

in src/main/java/com/google/cloud/solutions/autotokenize/datacatalog/DataCatalogWriter.java [80:93]


    public DataCatalogWriter build() {
      var tempWriter = autoBuild();

      // Validate entry group id
      var entryGroupId = tempWriter.entryGroupId();
      checkArgument(
          entryGroupId == null
              || entryGroupId.matches("^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"),
          "Data Catalog entry group id does not match pattern:"
              + " ^projects\\/[^/]+\\/locations\\/[^/]+\\/entryGroups\\/[^/]+$ found:%s",
          entryGroupId);

      return tempWriter;
    }