<?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 unshare a shared album in Google Photos.
 *
 * Generated from protobuf message <code>google.photos.library.v1.UnshareAlbumRequest</code>
 */
class UnshareAlbumRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Identifier of the album to be unshared. This album id must belong to an
     * album created by the developer.
     *
     * Generated from protobuf field <code>string album_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $album_id = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $album_id
     *           Required. Identifier of the album to be unshared. This album id must belong to an
     *           album created by the developer.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Photos\Library\V1\PhotosLibrary::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Identifier of the album to be unshared. This album id must belong to an
     * album created by the developer.
     *
     * Generated from protobuf field <code>string album_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getAlbumId()
    {
        return $this->album_id;
    }

    /**
     * Required. Identifier of the album to be unshared. This album id must belong to an
     * album created by the developer.
     *
     * Generated from protobuf field <code>string album_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setAlbumId($var)
    {
        GPBUtil::checkString($var, True);
        $this->album_id = $var;

        return $this;
    }

}

