Datastore/src/V1/CommitRequest.php
public function setMode($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Datastore\V1\CommitRequest_Mode::class);
        $this->mode = $var;

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

        return $this;
    }
public function setMode ( $ var ) { GPBUtil :: checkEnum ( $ var , \ Google \ Cloud \ Datastore \ V1 \ CommitRequest_Mode :: class ) ; $ this -> mode = $ var ; return $ this ; }
The type of commit to perform. Defaults to `TRANSACTIONAL`.

Generated from protobuf field <code>.google.datastore.v1.CommitRequest.Mode mode = 5;</code>
@param int $var
@return $this
The type of commit to perform . Defaults to TRANSACTIONAL .