code: static ResourcePath create(DatabaseRootName databaseName, ImmutableList<String> segments) {
      return new AutoValue_ResourcePath(segments, databaseName);
    }
docs: Creates a new Path.
  
  @param databaseName The Firestore database name.
  @param segments The segments of the path relative to the root collections.