PubSub/src/V1/UpdateSubscriptionRequest.php
public function setSubscription($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\PubSub\V1\Subscription::class);
        $this->subscription = $var;

        return $this;
    }
public function setSubscription($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\PubSub\V1\Subscription::class);
        $this->subscription = $var;

        return $this;
    }
public function setSubscription ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ PubSub \ V1 \ Subscription :: class ) ; $ this -> subscription = $ var ; return $ this ; }
The updated subscription object.

Generated from protobuf field <code>.google.pubsub.v1.Subscription subscription = 1;</code>
@param \Google\Cloud\PubSub\V1\Subscription $var
@return $this
The updated subscription object .