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

namespace Keyapis\AccessControl\V1;

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

/**
 * Фильтр для запроса связей квартирограммы и домофонной компании.
 * При передаче массива в параметр фильтра элементы массива работают в выборке через ИЛИ.
 * При передаче нескольких разных параметров фильтра они работают в выборке через И
 *
 * @deprecated
 * Generated from protobuf message <code>keyapis.access_control.v1.DcCompanyFlatgrammFilter</code>
 */
class DcCompanyFlatgrammFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * По Идентификатору домофонной компании
     *
     * Generated from protobuf field <code>repeated int32 company_ids = 1;</code>
     */
    private $company_ids;
    /**
     * По Идентификатору квартирограммы
     *
     * Generated from protobuf field <code>repeated int32 flatgramm_ids = 2;</code>
     */
    private $flatgramm_ids;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $company_ids
     *           По Идентификатору домофонной компании
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $flatgramm_ids
     *           По Идентификатору квартирограммы
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\AccessControl\V1\KeyapisAccessControlFlatgrammV1::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * По Идентификатору квартирограммы
     *
     * Generated from protobuf field <code>repeated int32 flatgramm_ids = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getFlatgrammIds()
    {
        return $this->flatgramm_ids;
    }

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

        return $this;
    }

}

