<?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;

/**
 * Request to retrieve a specific shared album.
 *
 * Generated from protobuf message <code>google.photos.library.v1.GetSharedAlbumRequest</code>
 */
class GetSharedAlbumRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Share token of the album to be requested.
     *
     * Generated from protobuf field <code>string share_token = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $share_token = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $share_token
     *           Required. Share token of the album to be requested.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Photos\Library\V1\PhotosLibrary::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Share token of the album to be requested.
     *
     * Generated from protobuf field <code>string share_token = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getShareToken()
    {
        return $this->share_token;
    }

    /**
     * Required. Share token of the album to be requested.
     *
     * Generated from protobuf field <code>string share_token = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setShareToken($var)
    {
        GPBUtil::checkString($var, True);
        $this->share_token = $var;

        return $this;
    }

}

