String getName() {
    String path = getPath();
    if (path.isEmpty()) {
      return getDatabaseName() + "/documents";
    } else {
      return getDatabaseName() + "/documents/" + getPath();
    }
  }
String getName ( ) { String path = getPath ( ) ; if ( path . isEmpty ( ) ) { return getDatabaseName ( ) + "/documents" ; } else { return getDatabaseName ( ) + "/documents/" + getPath ( ) ; } }
String representation as expected by the Firestore API.

@return The formatted name of the resource.