public final CommitResponse commit ( String database , List < Write > writes ) { CommitRequest request = CommitRequest . newBuilder ( ) . setDatabase ( database ) . addAllWrites ( writes ) . build ( ) ; return commit ( request ) ; }
Commits a transaction while optionally updating documents .