<?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.CmsPhoneFilter</code>
 */
class CmsPhoneFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * По идентификаторам устройства
     *
     * Generated from protobuf field <code>repeated int32 device_ids = 1;</code>
     */
    private $device_ids;
    /**
     * По статусам аналоговой трубки
     *
     * Generated from protobuf field <code>repeated .keyapis.device.v1.CmsPhone.StatusType status_types = 2;</code>
     */
    private $status_types;
    /**
     * По идентификаторам ОРПОН (дома)
     *
     * Generated from protobuf field <code>repeated int64 orpon_ids = 3;</code>
     */
    private $orpon_ids;
    /**
     * По номерам квартиры
     *
     * Generated from protobuf field <code>repeated string rooms = 4;</code>
     */
    private $rooms;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $device_ids
     *           По идентификаторам устройства
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $status_types
     *           По статусам аналоговой трубки
     *     @type array<int>|array<string>|\Google\Protobuf\Internal\RepeatedField $orpon_ids
     *           По идентификаторам ОРПОН (дома)
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $rooms
     *           По номерам квартиры
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Device\V1\KeyapisDeviceCmsPhoneV1::initOnce();
        parent::__construct($data);
    }

    /**
     * По идентификаторам устройства
     *
     * Generated from protobuf field <code>repeated int32 device_ids = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getDeviceIds()
    {
        return $this->device_ids;
    }

    /**
     * По идентификаторам устройства
     *
     * Generated from protobuf field <code>repeated int32 device_ids = 1;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setDeviceIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
        $this->device_ids = $arr;

        return $this;
    }

    /**
     * По статусам аналоговой трубки
     *
     * Generated from protobuf field <code>repeated .keyapis.device.v1.CmsPhone.StatusType status_types = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getStatusTypes()
    {
        return $this->status_types;
    }

    /**
     * По статусам аналоговой трубки
     *
     * Generated from protobuf field <code>repeated .keyapis.device.v1.CmsPhone.StatusType status_types = 2;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setStatusTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Keyapis\Device\V1\CmsPhone\StatusType::class);
        $this->status_types = $arr;

        return $this;
    }

    /**
     * По идентификаторам ОРПОН (дома)
     *
     * Generated from protobuf field <code>repeated int64 orpon_ids = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getOrponIds()
    {
        return $this->orpon_ids;
    }

    /**
     * По идентификаторам ОРПОН (дома)
     *
     * Generated from protobuf field <code>repeated int64 orpon_ids = 3;</code>
     * @param array<int>|array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setOrponIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64);
        $this->orpon_ids = $arr;

        return $this;
    }

    /**
     * По номерам квартиры
     *
     * Generated from protobuf field <code>repeated string rooms = 4;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getRooms()
    {
        return $this->rooms;
    }

    /**
     * По номерам квартиры
     *
     * Generated from protobuf field <code>repeated string rooms = 4;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setRooms($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->rooms = $arr;

        return $this;
    }

}

