Spanner/src/V1/CreateSessionRequest.php
public function setSession($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Spanner\V1\Session::class);
        $this->session = $var;

        return $this;
    }
public function setSession($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Spanner\V1\Session::class);
        $this->session = $var;

        return $this;
    }
public function setSession ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Spanner \ V1 \ Session :: class ) ; $ this -> session = $ var ; return $ this ; }
The session to create.

Generated from protobuf field <code>.google.spanner.v1.Session session = 2;</code>
@param \Google\Cloud\Spanner\V1\Session $var
@return $this
The session to create .