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

namespace Keyapis\Device\V1;

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

/**
 * Фильтр для SIP-трубок
 *
 * Generated from protobuf message <code>keyapis.device.v1.SipPhoneFilter</code>
 */
class SipPhoneFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * Фильтр по SIP номерам
     *
     * Generated from protobuf field <code>repeated string sip_numbers = 1;</code>
     */
    private $sip_numbers;
    /**
     * Фильтр по идентификаторам квартир
     *
     * Generated from protobuf field <code>repeated int32 room_ids = 2;</code>
     */
    private $room_ids;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $sip_numbers
     *           Фильтр по SIP номерам
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $room_ids
     *           Фильтр по идентификаторам квартир
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Device\V1\KeyapisDeviceSipPhoneV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Фильтр по SIP номерам
     *
     * Generated from protobuf field <code>repeated string sip_numbers = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getSipNumbers()
    {
        return $this->sip_numbers;
    }

    /**
     * Фильтр по SIP номерам
     *
     * Generated from protobuf field <code>repeated string sip_numbers = 1;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setSipNumbers($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->sip_numbers = $arr;

        return $this;
    }

    /**
     * Фильтр по идентификаторам квартир
     *
     * Generated from protobuf field <code>repeated int32 room_ids = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getRoomIds()
    {
        return $this->room_ids;
    }

    /**
     * Фильтр по идентификаторам квартир
     *
     * Generated from protobuf field <code>repeated int32 room_ids = 2;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setRoomIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
        $this->room_ids = $arr;

        return $this;
    }

}

