<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/dataflow/v1beta3/snapshots.proto

namespace Google\Cloud\Dataflow\V1beta3;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * List of snapshots.
 *
 * Generated from protobuf message <code>google.dataflow.v1beta3.ListSnapshotsResponse</code>
 */
class ListSnapshotsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Returned snapshots.
     *
     * Generated from protobuf field <code>repeated .google.dataflow.v1beta3.Snapshot snapshots = 1;</code>
     */
    private $snapshots;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\Dataflow\V1beta3\Snapshot>|\Google\Protobuf\Internal\RepeatedField $snapshots
     *           Returned snapshots.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Dataflow\V1Beta3\Snapshots::initOnce();
        parent::__construct($data);
    }

    /**
     * Returned snapshots.
     *
     * Generated from protobuf field <code>repeated .google.dataflow.v1beta3.Snapshot snapshots = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getSnapshots()
    {
        return $this->snapshots;
    }

    /**
     * Returned snapshots.
     *
     * Generated from protobuf field <code>repeated .google.dataflow.v1beta3.Snapshot snapshots = 1;</code>
     * @param array<\Google\Cloud\Dataflow\V1beta3\Snapshot>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setSnapshots($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\Snapshot::class);
        $this->snapshots = $arr;

        return $this;
    }

}

