public com.google.datastore.v1.TransactionOptions.ReadWrite getReadWrite() {
    if (modeCase_ == 1) {
      return (com.google.datastore.v1.TransactionOptions.ReadWrite) mode_;
    }
    return com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance();
  }
public com . google . datastore . v1 . TransactionOptions . ReadWrite getReadWrite ( ) { if ( modeCase_ == 1 ) { return ( com . google . datastore . v1 . TransactionOptions . ReadWrite ) mode_ ; } return com . google . datastore . v1 . TransactionOptions . ReadWrite . getDefaultInstance ( ) ; }
<pre>
The transaction should allow both reads and writes.
</pre>

<code>.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;</code>