<?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 create an album in Google Photos.
 *
 * Generated from protobuf message <code>google.photos.library.v1.CreateAlbumRequest</code>
 */
class CreateAlbumRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The album to be created.
     *
     * Generated from protobuf field <code>.google.photos.types.Album album = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $album = null;

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

    /**
     * Required. The album to be created.
     *
     * Generated from protobuf field <code>.google.photos.types.Album album = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Photos\Types\Album|null
     */
    public function getAlbum()
    {
        return isset($this->album) ? $this->album : null;
    }

    public function hasAlbum()
    {
        return isset($this->album);
    }

    public function clearAlbum()
    {
        unset($this->album);
    }

    /**
     * Required. The album to be created.
     *
     * Generated from protobuf field <code>.google.photos.types.Album album = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Photos\Types\Album $var
     * @return $this
     */
    public function setAlbum($var)
    {
        GPBUtil::checkMessage($var, \Google\Photos\Types\Album::class);
        $this->album = $var;

        return $this;
    }

}

