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

namespace Keyapis\Ecosystem\V1;

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

/**
 * Запрос проверки услуги на квартире
 *
 * Generated from protobuf message <code>keyapis.ecosystem.v1.GetLegoAdapterServiceCheckRequest</code>
 */
class GetLegoAdapterServiceCheckRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * ОРПОН.
     * Идентификатор дома.
     * # Диапазон: 0..9223372036854775807
     *
     * Generated from protobuf field <code>int64 orpon = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $orpon = 0;
    /**
     * Номер квартиры.
     * # Паттерн: /^[0-9]{1,4}$/
     *
     * Generated from protobuf field <code>string room_number = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $room_number = '';
    /**
     * Тип услуги
     *
     * Generated from protobuf field <code>.keyapis.ecosystem.v1.Service.Type service_type = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $service_type = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $orpon
     *           ОРПОН.
     *           Идентификатор дома.
     *           # Диапазон: 0..9223372036854775807
     *     @type string $room_number
     *           Номер квартиры.
     *           # Паттерн: /^[0-9]{1,4}$/
     *     @type int $service_type
     *           Тип услуги
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Ecosystem\V1\KeyapisEcosystemLegoAdapterV1::initOnce();
        parent::__construct($data);
    }

    /**
     * ОРПОН.
     * Идентификатор дома.
     * # Диапазон: 0..9223372036854775807
     *
     * Generated from protobuf field <code>int64 orpon = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int|string
     */
    public function getOrpon()
    {
        return $this->orpon;
    }

    /**
     * ОРПОН.
     * Идентификатор дома.
     * # Диапазон: 0..9223372036854775807
     *
     * Generated from protobuf field <code>int64 orpon = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int|string $var
     * @return $this
     */
    public function setOrpon($var)
    {
        GPBUtil::checkInt64($var);
        $this->orpon = $var;

        return $this;
    }

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

    /**
     * Номер квартиры.
     * # Паттерн: /^[0-9]{1,4}$/
     *
     * Generated from protobuf field <code>string room_number = 2 [(.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;
    }

    /**
     * Тип услуги
     *
     * Generated from protobuf field <code>.keyapis.ecosystem.v1.Service.Type service_type = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getServiceType()
    {
        return $this->service_type;
    }

    /**
     * Тип услуги
     *
     * Generated from protobuf field <code>.keyapis.ecosystem.v1.Service.Type service_type = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setServiceType($var)
    {
        GPBUtil::checkEnum($var, \Keyapis\Ecosystem\V1\Service\Type::class);
        $this->service_type = $var;

        return $this;
    }

}

