<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: livekit_agent_simulation.proto

namespace Livekit\SimulationRun\PBList;

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

/**
 * Generated from protobuf message <code>livekit.SimulationRun.List.Response</code>
 */
class Response extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>repeated .livekit.SimulationRun runs = 1;</code>
     */
    private $runs;
    /**
     * Generated from protobuf field <code>.livekit.TokenPagination next_page_token = 2;</code>
     */
    protected $next_page_token = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Livekit\SimulationRun[] $runs
     *     @type \Livekit\TokenPagination $next_page_token
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitAgentSimulation::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>repeated .livekit.SimulationRun runs = 1;</code>
     * @return RepeatedField<\Livekit\SimulationRun>
     */
    public function getRuns()
    {
        return $this->runs;
    }

    /**
     * Generated from protobuf field <code>repeated .livekit.SimulationRun runs = 1;</code>
     * @param \Livekit\SimulationRun[] $var
     * @return $this
     */
    public function setRuns($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Livekit\SimulationRun::class);
        $this->runs = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.livekit.TokenPagination next_page_token = 2;</code>
     * @return \Livekit\TokenPagination|null
     */
    public function getNextPageToken()
    {
        return $this->next_page_token;
    }

    public function hasNextPageToken()
    {
        return isset($this->next_page_token);
    }

    public function clearNextPageToken()
    {
        unset($this->next_page_token);
    }

    /**
     * Generated from protobuf field <code>.livekit.TokenPagination next_page_token = 2;</code>
     * @param \Livekit\TokenPagination $var
     * @return $this
     */
    public function setNextPageToken($var)
    {
        GPBUtil::checkMessage($var, \Livekit\TokenPagination::class);
        $this->next_page_token = $var;

        return $this;
    }

}

