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

namespace Keyapis\Device\V1;

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

/**
 * Запрос удаления аналоговых трубок по идентификатору ОРПОН, номеру квартиры и идентификатору устройства
 *
 * Generated from protobuf message <code>keyapis.device.v1.DeleteCmsPhoneOrponRoomNumberDeviceIdRequest</code>
 */
class DeleteCmsPhoneOrponRoomNumberDeviceIdRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор ОРПОН
     *
     * Generated from protobuf field <code>int64 orpon = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $orpon = 0;
    /**
     * Номер квартиры
     *
     * Generated from protobuf field <code>string room_number = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $room_number = '';
    /**
     * Идентификатор устройства
     *
     * Generated from protobuf field <code>int32 device_id = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $device_id = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $orpon
     *           Идентификатор ОРПОН
     *     @type string $room_number
     *           Номер квартиры
     *     @type int $device_id
     *           Идентификатор устройства
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Device\V1\KeyapisDeviceCmsPhoneV1::initOnce();
        parent::__construct($data);
    }

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

    /**
     * Идентификатор ОРПОН
     *
     * 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;
    }

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

    /**
     * Номер квартиры
     *
     * 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>int32 device_id = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getDeviceId()
    {
        return $this->device_id;
    }

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

        return $this;
    }

}

