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

namespace Keyapis\TelemetryControl\V1;

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

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

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $group_ids
     *           По Идентификатору группы пользователя
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $building_ids
     *           По Объекту строительства
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\TelemetryControl\V1\KeyapisTelemetryControlBuildingV1::initOnce();
        parent::__construct($data);
    }

    /**
     * По Идентификатору группы пользователя
     *
     * Generated from protobuf field <code>repeated string group_ids = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getGroupIds()
    {
        return $this->group_ids;
    }

    /**
     * По Идентификатору группы пользователя
     *
     * Generated from protobuf field <code>repeated string group_ids = 1;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setGroupIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->group_ids = $arr;

        return $this;
    }

    /**
     * По Объекту строительства
     *
     * Generated from protobuf field <code>repeated int32 building_ids = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getBuildingIds()
    {
        return $this->building_ids;
    }

    /**
     * По Объекту строительства
     *
     * Generated from protobuf field <code>repeated int32 building_ids = 2;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setBuildingIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
        $this->building_ids = $arr;

        return $this;
    }

}

