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

namespace Keyapis\AccessControl\V1\AccessPoint;

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

/**
 * Камера
 *
 * Generated from protobuf message <code>keyapis.access_control.v1.AccessPoint.Camera</code>
 */
class Camera extends \Google\Protobuf\Internal\Message
{
    /**
     * UID камеры
     *
     * Generated from protobuf field <code>string uid = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $uid = '';
    /**
     * Типы распознавания
     *
     * Generated from protobuf field <code>repeated .keyapis.access_control.v1.AccessPoint.Camera.RecognitionType recognition_types = 2;</code>
     */
    private $recognition_types;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $uid
     *           UID камеры
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $recognition_types
     *           Типы распознавания
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\AccessControl\V1\KeyapisAccessControlAccessPointV1::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * Типы распознавания
     *
     * Generated from protobuf field <code>repeated .keyapis.access_control.v1.AccessPoint.Camera.RecognitionType recognition_types = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getRecognitionTypes()
    {
        return $this->recognition_types;
    }

    /**
     * Типы распознавания
     *
     * Generated from protobuf field <code>repeated .keyapis.access_control.v1.AccessPoint.Camera.RecognitionType recognition_types = 2;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setRecognitionTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Keyapis\AccessControl\V1\AccessPoint\Camera\RecognitionType::class);
        $this->recognition_types = $arr;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Camera::class, \Keyapis\AccessControl\V1\AccessPoint_Camera::class);

