public function Txn(TxnRequest $argument,
                        $metadata = [], $options = [])
    {
        return $this->_simpleRequest('/etcdserverpb.KV/Txn',
            $argument,
            ['\Etcdserverpb\TxnResponse', 'decode'],
            $metadata,
            $options
        );
    }
public function Txn(TxnRequest $argument,
                        $metadata = [], $options = [])
    {
        return $this->_simpleRequest('/etcdserverpb.KV/Txn',
            $argument,
            ['\Etcdserverpb\TxnResponse', 'decode'],
            $metadata,
            $options
        );
    }
public function Txn ( TxnRequest $ argument , $ metadata = [ ] , $ options = [ ] ) { return $ this -> _simpleRequest ( '/etcdserverpb.KV/Txn' , $ argument , [ '\Etcdserverpb\TxnResponse' , 'decode' ] , $ metadata , $ options ) ; }
Txn processes multiple requests in a single transaction.
A txn request increments the revision of the key-value store
and generates events with the same revision for every completed request.
It is not allowed to modify the same key several times within one txn.
@param TxnRequest $argument input argument
@param array $metadata metadata
@param array $options call options
@return UnaryCall
Txn processes multiple requests in a single transaction . A txn request increments the revision of the key - value store and generates events with the same revision for every completed request . It is not allowed to modify the same key several times within one txn .