<?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 leave a shared album on behalf of the user. This uses a shareToken
 * which can be acquired via the or listSharedAlbums or getAlbum calls.
 *
 * Generated from protobuf message <code>google.photos.library.v1.LeaveSharedAlbumRequest</code>
 */
class LeaveSharedAlbumRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Token to leave the shared album on behalf of the user.
     *
     * 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. Token to leave the shared album on behalf of the user.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Photos\Library\V1\PhotosLibrary::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Token to leave the shared album on behalf of the user.
     *
     * 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. Token to leave the shared album on behalf of the user.
     *
     * 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;
    }

}

