Transaction created by this request.

Generated from protobuf field <code>.google.spanner.v1.Transaction transaction = 2;</code>
@param \Google\Cloud\Spanner\V1\Transaction $var
@return $this
544454
public function setTransaction($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Spanner\V1\Transaction::class);
        $this->transaction = $var;

        return $this;
    }
231287
public function setMode($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Datastore\V1\CommitRequest_Mode::class);
        $this->mode = $var;

        return $this;
    }
970932
public function setDelete($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Spanner\V1\Mutation_Delete::class);
        $this->writeOneof(5, $var);

        return $this;
    }
1074987
public function setCompany($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\Company::class);
        $this->company = $var;

        return $this;
    }
575208
public function setTasks($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Tasks\V2beta2\Task::class);
        $this->tasks = $arr;

        return $this;
    }
1087048
public function setValue($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class);
        $this->value = $var;

        return $this;
    }
756799
public function setValues($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->values = $arr;

        return $this;
    }
347471
public function setManagement($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeManagement::class);
        $this->management = $var;

        return $this;
    }
1314354
public function setFields($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldId::class);
        $this->fields = $arr;

        return $this;
    }
1175605
public function setExtension($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\FieldDescriptorProto::class);
        $this->extension = $arr;
        $this->has_extension = true;

        return $this;
    }
696823
public function setText($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->text = $arr;

        return $this;
    }
138308
public function setTenant($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\Tenant::class);
        $this->tenant = $var;

        return $this;
    }
898850
public function setText($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Language\V1\TextSpan::class);
        $this->text = $var;

        return $this;
    }
569539
public function transaction() {

		if(null === $this -> connection) {
			$this -> connect();
		}

		$this -> connection -> autocommit(false);
		$this -> connection -> begin_transaction(MYSQLI_TRANS_START_READ_WRITE);

		return $this;
	}
624884
public function setOneofs($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->oneofs = $arr;

        return $this;
    }
629449
public function setRow($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Row::class);
        $this->row = $var;

        return $this;
    }
1196903
public function setField($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\FieldDescriptorProto::class);
        $this->field = $arr;
        $this->has_field = true;

        return $this;
    }