<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/vc/v1/keyapis_vc_camera_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.GetCameraRequest</code>
 */
class GetCameraRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Ограничение выборки
     *
     * Generated from protobuf field <code>.keyapis.vc.v1.CameraScope scope = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $scope = null;
    /**
     * uid камеры
     *
     * Generated from protobuf field <code>string uid = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $uid = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Keyapis\Vc\V1\CameraScope $scope
     *           Ограничение выборки
     *     @type string $uid
     *           uid камеры
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Vc\V1\KeyapisVcCameraV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Ограничение выборки
     *
     * Generated from protobuf field <code>.keyapis.vc.v1.CameraScope scope = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Keyapis\Vc\V1\CameraScope|null
     */
    public function getScope()
    {
        return $this->scope;
    }

    public function hasScope()
    {
        return isset($this->scope);
    }

    public function clearScope()
    {
        unset($this->scope);
    }

    /**
     * Ограничение выборки
     *
     * Generated from protobuf field <code>.keyapis.vc.v1.CameraScope scope = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Keyapis\Vc\V1\CameraScope $var
     * @return $this
     */
    public function setScope($var)
    {
        GPBUtil::checkMessage($var, \Keyapis\Vc\V1\CameraScope::class);
        $this->scope = $var;

        return $this;
    }

    /**
     * uid камеры
     *
     * Generated from protobuf field <code>string uid = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getUid()
    {
        return $this->uid;
    }

    /**
     * uid камеры
     *
     * Generated from protobuf field <code>string uid = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setUid($var)
    {
        GPBUtil::checkString($var, True);
        $this->uid = $var;

        return $this;
    }

}

