<?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 media items to an album.
 *
 * Generated from protobuf message <code>google.photos.library.v1.BatchAddMediaItemsToAlbumRequest</code>
 */
class BatchAddMediaItemsToAlbumRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Identifiers of the [MediaItem][google.photos.types.MediaItem]s to be
     * added.
     * The maximum number of media items that can be added in one call is 50.
     *
     * Generated from protobuf field <code>repeated string media_item_ids = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $media_item_ids;
    /**
     * Required. Identifier of the [Album][google.photos.types.Album] that the
     * media items are added to.
     *
     * Generated from protobuf field <code>string album_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $album_id = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string[]|\Google\Protobuf\Internal\RepeatedField $media_item_ids
     *           Required. Identifiers of the [MediaItem][google.photos.types.MediaItem]s to be
     *           added.
     *           The maximum number of media items that can be added in one call is 50.
     *     @type string $album_id
     *           Required. Identifier of the [Album][google.photos.types.Album] that the
     *           media items are added to.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Photos\Library\V1\PhotosLibrary::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Identifiers of the [MediaItem][google.photos.types.MediaItem]s to be
     * added.
     * The maximum number of media items that can be added in one call is 50.
     *
     * Generated from protobuf field <code>repeated string media_item_ids = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getMediaItemIds()
    {
        return $this->media_item_ids;
    }

    /**
     * Required. Identifiers of the [MediaItem][google.photos.types.MediaItem]s to be
     * added.
     * The maximum number of media items that can be added in one call is 50.
     *
     * Generated from protobuf field <code>repeated string media_item_ids = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setMediaItemIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->media_item_ids = $arr;

        return $this;
    }

    /**
     * Required. Identifier of the [Album][google.photos.types.Album] that the
     * media items are added to.
     *
     * Generated from protobuf field <code>string album_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getAlbumId()
    {
        return $this->album_id;
    }

    /**
     * Required. Identifier of the [Album][google.photos.types.Album] that the
     * media items are added to.
     *
     * Generated from protobuf field <code>string album_id = 2 [(.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;
    }

}

