public function setTransactionOptions($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\TransactionOptions::class);
        $this->transaction_options = $var;

        return $this;
    }