<?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.CameraRoom</code>
 */
class CameraRoom extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор камеры
     *
     * Generated from protobuf field <code>string camera_uid = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $camera_uid = '';
    /**
     * ОРПОН дома
     *
     * Generated from protobuf field <code>int64 orpon = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $orpon = 0;
    /**
     * Номер квартиры.
     * # Диапазон: 1..4
     *
     * Generated from protobuf field <code>string room_number = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $room_number = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $camera_uid
     *           Идентификатор камеры
     *     @type int|string $orpon
     *           ОРПОН дома
     *     @type string $room_number
     *           Номер квартиры.
     *           # Диапазон: 1..4
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Vc\V1\KeyapisVcCameraV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Идентификатор камеры
     *
     * Generated from protobuf field <code>string camera_uid = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getCameraUid()
    {
        return $this->camera_uid;
    }

    /**
     * Идентификатор камеры
     *
     * Generated from protobuf field <code>string camera_uid = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setCameraUid($var)
    {
        GPBUtil::checkString($var, True);
        $this->camera_uid = $var;

        return $this;
    }

    /**
     * ОРПОН дома
     *
     * Generated from protobuf field <code>int64 orpon = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int|string
     */
    public function getOrpon()
    {
        return $this->orpon;
    }

    /**
     * ОРПОН дома
     *
     * Generated from protobuf field <code>int64 orpon = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int|string $var
     * @return $this
     */
    public function setOrpon($var)
    {
        GPBUtil::checkInt64($var);
        $this->orpon = $var;

        return $this;
    }

    /**
     * Номер квартиры.
     * # Диапазон: 1..4
     *
     * Generated from protobuf field <code>string room_number = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getRoomNumber()
    {
        return $this->room_number;
    }

    /**
     * Номер квартиры.
     * # Диапазон: 1..4
     *
     * Generated from protobuf field <code>string room_number = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setRoomNumber($var)
    {
        GPBUtil::checkString($var, True);
        $this->room_number = $var;

        return $this;
    }

}

