<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/chat/v1/section.proto

namespace Google\Apps\Chat\V1;

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

/**
 * Response message for listing section items.
 *
 * Generated from protobuf message <code>google.chat.v1.ListSectionItemsResponse</code>
 */
class ListSectionItemsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The section items from the specified section.
     *
     * Generated from protobuf field <code>repeated .google.chat.v1.SectionItem section_items = 1;</code>
     */
    private $section_items;
    /**
     * A token, which can be sent as `page_token` to retrieve the next page. If
     * this field is omitted, there are no subsequent pages.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     */
    protected $next_page_token = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Apps\Chat\V1\SectionItem[] $section_items
     *           The section items from the specified section.
     *     @type string $next_page_token
     *           A token, which can be sent as `page_token` to retrieve the next page. If
     *           this field is omitted, there are no subsequent pages.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Chat\V1\Section::initOnce();
        parent::__construct($data);
    }

    /**
     * The section items from the specified section.
     *
     * Generated from protobuf field <code>repeated .google.chat.v1.SectionItem section_items = 1;</code>
     * @return RepeatedField<\Google\Apps\Chat\V1\SectionItem>
     */
    public function getSectionItems()
    {
        return $this->section_items;
    }

    /**
     * The section items from the specified section.
     *
     * Generated from protobuf field <code>repeated .google.chat.v1.SectionItem section_items = 1;</code>
     * @param \Google\Apps\Chat\V1\SectionItem[] $var
     * @return $this
     */
    public function setSectionItems($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\SectionItem::class);
        $this->section_items = $arr;

        return $this;
    }

    /**
     * A token, which can be sent as `page_token` to retrieve the next page. If
     * this field is omitted, there are no subsequent pages.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     * @return string
     */
    public function getNextPageToken()
    {
        return $this->next_page_token;
    }

    /**
     * A token, which can be sent as `page_token` to retrieve the next page. If
     * this field is omitted, there are no subsequent pages.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setNextPageToken($var)
    {
        GPBUtil::checkString($var, True);
        $this->next_page_token = $var;

        return $this;
    }

}

