<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/vc/v1/keyapis_vc_camera_group_v1.proto

namespace Keyapis\Vc\V1;

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

/**
 * Запрос на создание коллекции камер
 *
 * Generated from protobuf message <code>keyapis.vc.v1.SaveCameraCollectionRequest</code>
 */
class SaveCameraCollectionRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Коллекция камер
     *
     * Generated from protobuf field <code>.keyapis.vc.v1.CameraCollection data = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $data = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Keyapis\Vc\V1\CameraCollection $data
     *           Коллекция камер
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Vc\V1\KeyapisVcCameraGroupV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Коллекция камер
     *
     * Generated from protobuf field <code>.keyapis.vc.v1.CameraCollection data = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Keyapis\Vc\V1\CameraCollection|null
     */
    public function getData()
    {
        return $this->data;
    }

    public function hasData()
    {
        return isset($this->data);
    }

    public function clearData()
    {
        unset($this->data);
    }

    /**
     * Коллекция камер
     *
     * Generated from protobuf field <code>.keyapis.vc.v1.CameraCollection data = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Keyapis\Vc\V1\CameraCollection $var
     * @return $this
     */
    public function setData($var)
    {
        GPBUtil::checkMessage($var, \Keyapis\Vc\V1\CameraCollection::class);
        $this->data = $var;

        return $this;
    }

}

