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

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.ListIngressResponse</code>
 */
class ListIngressResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.livekit.TokenPagination next_page_token = 2;</code>
     */
    protected $next_page_token = null;
    /**
     * next field id: 3
     *
     * Generated from protobuf field <code>repeated .livekit.IngressInfo items = 1;</code>
     */
    private $items;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Livekit\TokenPagination $next_page_token
     *     @type \Livekit\IngressInfo[] $items
     *           next field id: 3
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitIngress::initOnce();
        parent::__construct($data);
    }

    /**
     * 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;
    }

    /**
     * next field id: 3
     *
     * Generated from protobuf field <code>repeated .livekit.IngressInfo items = 1;</code>
     * @return RepeatedField<\Livekit\IngressInfo>
     */
    public function getItems()
    {
        return $this->items;
    }

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

        return $this;
    }

}

