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

namespace Google\Photos\Types;

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

/**
 * Options that control the sharing of an album.
 *
 * Generated from protobuf message <code>google.photos.types.SharedAlbumOptions</code>
 */
class SharedAlbumOptions extends \Google\Protobuf\Internal\Message
{
    /**
     * True if the shared album allows collaborators (users who have joined
     * the album) to add media items to it. Defaults to false.
     *
     * Generated from protobuf field <code>bool is_collaborative = 1;</code>
     */
    protected $is_collaborative = false;
    /**
     * True if the shared album allows collaborators (users who have joined the
     * album) to add comments to the album. Defaults to false.
     *
     * Generated from protobuf field <code>bool is_commentable = 2;</code>
     */
    protected $is_commentable = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $is_collaborative
     *           True if the shared album allows collaborators (users who have joined
     *           the album) to add media items to it. Defaults to false.
     *     @type bool $is_commentable
     *           True if the shared album allows collaborators (users who have joined the
     *           album) to add comments to the album. Defaults to false.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Photos\Types\Album::initOnce();
        parent::__construct($data);
    }

    /**
     * True if the shared album allows collaborators (users who have joined
     * the album) to add media items to it. Defaults to false.
     *
     * Generated from protobuf field <code>bool is_collaborative = 1;</code>
     * @return bool
     */
    public function getIsCollaborative()
    {
        return $this->is_collaborative;
    }

    /**
     * True if the shared album allows collaborators (users who have joined
     * the album) to add media items to it. Defaults to false.
     *
     * Generated from protobuf field <code>bool is_collaborative = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsCollaborative($var)
    {
        GPBUtil::checkBool($var);
        $this->is_collaborative = $var;

        return $this;
    }

    /**
     * True if the shared album allows collaborators (users who have joined the
     * album) to add comments to the album. Defaults to false.
     *
     * Generated from protobuf field <code>bool is_commentable = 2;</code>
     * @return bool
     */
    public function getIsCommentable()
    {
        return $this->is_commentable;
    }

    /**
     * True if the shared album allows collaborators (users who have joined the
     * album) to add comments to the album. Defaults to false.
     *
     * Generated from protobuf field <code>bool is_commentable = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsCommentable($var)
    {
        GPBUtil::checkBool($var);
        $this->is_commentable = $var;

        return $this;
    }

}

