<?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 make an album shared in Google Photos.
 *
 * Generated from protobuf message <code>google.photos.library.v1.ShareAlbumRequest</code>
 */
class ShareAlbumRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Identifier of the album to be shared. This `albumId` 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 = '';
    /**
     * Options to be set when converting the album to a shared album.
     *
     * Generated from protobuf field <code>.google.photos.types.SharedAlbumOptions shared_album_options = 2;</code>
     */
    protected $shared_album_options = null;

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

    /**
     * Required. Identifier of the album to be shared. This `albumId` 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 shared. This `albumId` 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;
    }

    /**
     * Options to be set when converting the album to a shared album.
     *
     * Generated from protobuf field <code>.google.photos.types.SharedAlbumOptions shared_album_options = 2;</code>
     * @return \Google\Photos\Types\SharedAlbumOptions|null
     */
    public function getSharedAlbumOptions()
    {
        return isset($this->shared_album_options) ? $this->shared_album_options : null;
    }

    public function hasSharedAlbumOptions()
    {
        return isset($this->shared_album_options);
    }

    public function clearSharedAlbumOptions()
    {
        unset($this->shared_album_options);
    }

    /**
     * Options to be set when converting the album to a shared album.
     *
     * Generated from protobuf field <code>.google.photos.types.SharedAlbumOptions shared_album_options = 2;</code>
     * @param \Google\Photos\Types\SharedAlbumOptions $var
     * @return $this
     */
    public function setSharedAlbumOptions($var)
    {
        GPBUtil::checkMessage($var, \Google\Photos\Types\SharedAlbumOptions::class);
        $this->shared_album_options = $var;

        return $this;
    }

}

