PubSub/src/V1/UpdateSnapshotRequest.php
public function setSnapshot($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\PubSub\V1\Snapshot::class);
        $this->snapshot = $var;

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

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

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