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

namespace Grafeas\V1;

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

/**
 * Response for listing notes.
 *
 * Generated from protobuf message <code>grafeas.v1.ListNotesResponse</code>
 */
class ListNotesResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The notes requested.
     *
     * Generated from protobuf field <code>repeated .grafeas.v1.Note notes = 1;</code>
     */
    private $notes;
    /**
     * The next pagination token in the list response. It should be used as
     * `page_token` for the following request. An empty value means no more
     * results.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     */
    private $next_page_token = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Grafeas\V1\Note>|\Google\Protobuf\Internal\RepeatedField $notes
     *           The notes requested.
     *     @type string $next_page_token
     *           The next pagination token in the list response. It should be used as
     *           `page_token` for the following request. An empty value means no more
     *           results.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Grafeas\V1\Grafeas::initOnce();
        parent::__construct($data);
    }

    /**
     * The notes requested.
     *
     * Generated from protobuf field <code>repeated .grafeas.v1.Note notes = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getNotes()
    {
        return $this->notes;
    }

    /**
     * The notes requested.
     *
     * Generated from protobuf field <code>repeated .grafeas.v1.Note notes = 1;</code>
     * @param array<\Grafeas\V1\Note>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setNotes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Note::class);
        $this->notes = $arr;

        return $this;
    }

    /**
     * The next pagination token in the list response. It should be used as
     * `page_token` for the following request. An empty value means no more
     * results.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     * @return string
     */
    public function getNextPageToken()
    {
        return $this->next_page_token;
    }

    /**
     * The next pagination token in the list response. It should be used as
     * `page_token` for the following request. An empty value means no more
     * results.
     *
     * 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;
    }

}

