<?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 add an enrichment to a specific album at a specific position.
 *
 * Generated from protobuf message <code>google.photos.library.v1.AddEnrichmentToAlbumRequest</code>
 */
class AddEnrichmentToAlbumRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Identifier of the album where the enrichment is to be added.
     *
     * Generated from protobuf field <code>string album_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $album_id = '';
    /**
     * Required. The enrichment to be added.
     *
     * Generated from protobuf field <code>.google.photos.library.v1.NewEnrichmentItem new_enrichment_item = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $new_enrichment_item = null;
    /**
     * Required. The position in the album where the enrichment is to be inserted.
     *
     * Generated from protobuf field <code>.google.photos.library.v1.AlbumPosition album_position = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $album_position = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $album_id
     *           Required. Identifier of the album where the enrichment is to be added.
     *     @type \Google\Photos\Library\V1\NewEnrichmentItem $new_enrichment_item
     *           Required. The enrichment to be added.
     *     @type \Google\Photos\Library\V1\AlbumPosition $album_position
     *           Required. The position in the album where the enrichment is to be inserted.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Photos\Library\V1\PhotosLibrary::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Identifier of the album where the enrichment is to be added.
     *
     * 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 where the enrichment is to be added.
     *
     * 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;
    }

    /**
     * Required. The enrichment to be added.
     *
     * Generated from protobuf field <code>.google.photos.library.v1.NewEnrichmentItem new_enrichment_item = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Photos\Library\V1\NewEnrichmentItem|null
     */
    public function getNewEnrichmentItem()
    {
        return isset($this->new_enrichment_item) ? $this->new_enrichment_item : null;
    }

    public function hasNewEnrichmentItem()
    {
        return isset($this->new_enrichment_item);
    }

    public function clearNewEnrichmentItem()
    {
        unset($this->new_enrichment_item);
    }

    /**
     * Required. The enrichment to be added.
     *
     * Generated from protobuf field <code>.google.photos.library.v1.NewEnrichmentItem new_enrichment_item = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Photos\Library\V1\NewEnrichmentItem $var
     * @return $this
     */
    public function setNewEnrichmentItem($var)
    {
        GPBUtil::checkMessage($var, \Google\Photos\Library\V1\NewEnrichmentItem::class);
        $this->new_enrichment_item = $var;

        return $this;
    }

    /**
     * Required. The position in the album where the enrichment is to be inserted.
     *
     * Generated from protobuf field <code>.google.photos.library.v1.AlbumPosition album_position = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Photos\Library\V1\AlbumPosition|null
     */
    public function getAlbumPosition()
    {
        return isset($this->album_position) ? $this->album_position : null;
    }

    public function hasAlbumPosition()
    {
        return isset($this->album_position);
    }

    public function clearAlbumPosition()
    {
        unset($this->album_position);
    }

    /**
     * Required. The position in the album where the enrichment is to be inserted.
     *
     * Generated from protobuf field <code>.google.photos.library.v1.AlbumPosition album_position = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Photos\Library\V1\AlbumPosition $var
     * @return $this
     */
    public function setAlbumPosition($var)
    {
        GPBUtil::checkMessage($var, \Google\Photos\Library\V1\AlbumPosition::class);
        $this->album_position = $var;

        return $this;
    }

}

