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

namespace Google\Photos\Library\V1;

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

/**
 * List of shared albums requested.
 *
 * Generated from protobuf message <code>google.photos.library.v1.ListSharedAlbumsResponse</code>
 */
class ListSharedAlbumsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. List of shared albums.
     *
     * Generated from protobuf field <code>repeated .google.photos.types.Album shared_albums = 1;</code>
     */
    private $shared_albums;
    /**
     * Output only. Token to use to get the next set of shared albums. Populated
     * if there are more shared albums to retrieve for this request.
     *
     * 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\Photos\Types\Album[]|\Google\Protobuf\Internal\RepeatedField $shared_albums
     *           Output only. List of shared albums.
     *     @type string $next_page_token
     *           Output only. Token to use to get the next set of shared albums. Populated
     *           if there are more shared albums to retrieve for this request.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Photos\Library\V1\PhotosLibrary::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. List of shared albums.
     *
     * Generated from protobuf field <code>repeated .google.photos.types.Album shared_albums = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getSharedAlbums()
    {
        return $this->shared_albums;
    }

    /**
     * Output only. List of shared albums.
     *
     * Generated from protobuf field <code>repeated .google.photos.types.Album shared_albums = 1;</code>
     * @param \Google\Photos\Types\Album[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setSharedAlbums($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Photos\Types\Album::class);
        $this->shared_albums = $arr;

        return $this;
    }

    /**
     * Output only. Token to use to get the next set of shared albums. Populated
     * if there are more shared albums to retrieve for this request.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     * @return string
     */
    public function getNextPageToken()
    {
        return $this->next_page_token;
    }

    /**
     * Output only. Token to use to get the next set of shared albums. Populated
     * if there are more shared albums to retrieve for this request.
     *
     * 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;
    }

}

