PubSub/src/V1/ListSnapshotsResponse.php
public function setSnapshots($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\PubSub\V1\Snapshot::class);
        $this->snapshots = $arr;

        return $this;
    }
public function setSnapshots($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\PubSub\V1\Snapshot::class);
        $this->snapshots = $arr;

        return $this;
    }
public function setSnapshots ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ PubSub \ V1 \ Snapshot :: class ) ; $ this -> snapshots = $ arr ; return $ this ; }
The resulting snapshots.

Generated from protobuf field <code>repeated .google.pubsub.v1.Snapshot snapshots = 1;</code>
@param \Google\Cloud\PubSub\V1\Snapshot[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
The resulting snapshots .