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

namespace Keyapis\AccessControl\V1\ConfigureRoomsResultTask;

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

/**
 * Результат конфигурации квартиры
 *
 * Generated from protobuf message <code>keyapis.access_control.v1.ConfigureRoomsResultTask.Room</code>
 */
class Room extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор квартиры
     *
     * Generated from protobuf field <code>int32 room_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $room_id = 0;
    /**
     * Признак "Сконфигурировано"
     *
     * Generated from protobuf field <code>bool is_configured = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $is_configured = false;
    /**
     * Текст ошибки
     *
     * Generated from protobuf field <code>string error_message = 3;</code>
     */
    protected $error_message = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $room_id
     *           Идентификатор квартиры
     *     @type bool $is_configured
     *           Признак "Сконфигурировано"
     *     @type string $error_message
     *           Текст ошибки
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\AccessControl\V1\KeyapisAccessControlEvents1::initOnce();
        parent::__construct($data);
    }

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

    /**
     * Идентификатор квартиры
     *
     * Generated from protobuf field <code>int32 room_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setRoomId($var)
    {
        GPBUtil::checkInt32($var);
        $this->room_id = $var;

        return $this;
    }

    /**
     * Признак "Сконфигурировано"
     *
     * Generated from protobuf field <code>bool is_configured = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return bool
     */
    public function getIsConfigured()
    {
        return $this->is_configured;
    }

    /**
     * Признак "Сконфигурировано"
     *
     * Generated from protobuf field <code>bool is_configured = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param bool $var
     * @return $this
     */
    public function setIsConfigured($var)
    {
        GPBUtil::checkBool($var);
        $this->is_configured = $var;

        return $this;
    }

    /**
     * Текст ошибки
     *
     * Generated from protobuf field <code>string error_message = 3;</code>
     * @return string
     */
    public function getErrorMessage()
    {
        return $this->error_message;
    }

    /**
     * Текст ошибки
     *
     * Generated from protobuf field <code>string error_message = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setErrorMessage($var)
    {
        GPBUtil::checkString($var, True);
        $this->error_message = $var;

        return $this;
    }

}

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

