code: public final CommitResponse commit(String database, List<Write> writes) {
  
      CommitRequest request =
          CommitRequest.newBuilder().setDatabase(database).addAllWrites(writes).build();
      return commit(request);
    }
docs: Commits a transaction, while optionally updating documents.
  
  <p>Sample code:
  
  <pre><code>
  try (FirestoreClient firestoreClient = FirestoreClient.create()) {
  String formattedDatabase = DatabaseRootName.format("[PROJECT]", "[DATABASE]");
  List&lt;Write&gt; writes = new ArrayList&lt;&gt;();
  CommitResponse response = firestoreClient.commit(formattedDatabase, writes);
  }
  </code></pre>
  
  @param database The database name. In the format:
  `projects/{project_id}/databases/{database_id}`.
  @param writes The writes to apply.
  <p>Always executed atomically and in order.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails