Logging/src/V2/CreateSinkRequest.php
public function setSink($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Logging\V2\LogSink::class);
        $this->sink = $var;

        return $this;
    }
public function setSink($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Logging\V2\LogSink::class);
        $this->sink = $var;

        return $this;
    }
public function setSink ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Logging \ V2 \ LogSink :: class ) ; $ this -> sink = $ var ; return $ this ; }
Required. The new sink, whose `name` parameter is a sink identifier that
is not already in use.

Generated from protobuf field <code>.google.logging.v2.LogSink sink = 2;</code>
@param \Google\Cloud\Logging\V2\LogSink $var
@return $this
Required . The new sink whose name parameter is a sink identifier that is not already in use .