<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/telemetry_control/v1/keyapis_telemetry_control_template_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.TemplateIndicatorFilter</code>
 */
class TemplateIndicatorFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * По типу измерений
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.TemplateIndicator.SignType sign_types = 1;</code>
     */
    private $sign_types;
    /**
     * По типу архивности показаний
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.TemplateIndicator.ArchiveType archive_types = 2;</code>
     */
    private $archive_types;
    /**
     * По флагу видимости индикатора для клиента ФЛ
     *
     * Generated from protobuf field <code>.google.protobuf.BoolValue is_individual = 3;</code>
     */
    protected $is_individual = null;
    /**
     * По шаблонному названию индикатора.
     * Поиск производится по подстроке
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue title = 4;</code>
     */
    protected $title = null;
    /**
     * По посреднику получения показаний
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.TemplateIndicator.VendorType indicator_vendor_types = 5;</code>
     */
    private $indicator_vendor_types;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $sign_types
     *           По типу измерений
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $archive_types
     *           По типу архивности показаний
     *     @type \Google\Protobuf\BoolValue $is_individual
     *           По флагу видимости индикатора для клиента ФЛ
     *     @type \Google\Protobuf\StringValue $title
     *           По шаблонному названию индикатора.
     *           Поиск производится по подстроке
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $indicator_vendor_types
     *           По посреднику получения показаний
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\TelemetryControl\V1\KeyapisTelemetryControlTemplateV1::initOnce();
        parent::__construct($data);
    }

    /**
     * По типу измерений
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.TemplateIndicator.SignType sign_types = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getSignTypes()
    {
        return $this->sign_types;
    }

    /**
     * По типу измерений
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.TemplateIndicator.SignType sign_types = 1;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setSignTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Keyapis\TelemetryControl\V1\TemplateIndicator\SignType::class);
        $this->sign_types = $arr;

        return $this;
    }

    /**
     * По типу архивности показаний
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.TemplateIndicator.ArchiveType archive_types = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getArchiveTypes()
    {
        return $this->archive_types;
    }

    /**
     * По типу архивности показаний
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.TemplateIndicator.ArchiveType archive_types = 2;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setArchiveTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Keyapis\TelemetryControl\V1\TemplateIndicator\ArchiveType::class);
        $this->archive_types = $arr;

        return $this;
    }

    /**
     * По флагу видимости индикатора для клиента ФЛ
     *
     * Generated from protobuf field <code>.google.protobuf.BoolValue is_individual = 3;</code>
     * @return \Google\Protobuf\BoolValue|null
     */
    public function getIsIndividual()
    {
        return $this->is_individual;
    }

    public function hasIsIndividual()
    {
        return isset($this->is_individual);
    }

    public function clearIsIndividual()
    {
        unset($this->is_individual);
    }

    /**
     * Returns the unboxed value from <code>getIsIndividual()</code>

     * По флагу видимости индикатора для клиента ФЛ
     *
     * Generated from protobuf field <code>.google.protobuf.BoolValue is_individual = 3;</code>
     * @return bool|null
     */
    public function getIsIndividualUnwrapped()
    {
        return $this->readWrapperValue("is_individual");
    }

    /**
     * По флагу видимости индикатора для клиента ФЛ
     *
     * Generated from protobuf field <code>.google.protobuf.BoolValue is_individual = 3;</code>
     * @param \Google\Protobuf\BoolValue $var
     * @return $this
     */
    public function setIsIndividual($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class);
        $this->is_individual = $var;

        return $this;
    }

    /**
     * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.

     * По флагу видимости индикатора для клиента ФЛ
     *
     * Generated from protobuf field <code>.google.protobuf.BoolValue is_individual = 3;</code>
     * @param bool|null $var
     * @return $this
     */
    public function setIsIndividualUnwrapped($var)
    {
        $this->writeWrapperValue("is_individual", $var);
        return $this;}

    /**
     * По шаблонному названию индикатора.
     * Поиск производится по подстроке
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue title = 4;</code>
     * @return \Google\Protobuf\StringValue|null
     */
    public function getTitle()
    {
        return $this->title;
    }

    public function hasTitle()
    {
        return isset($this->title);
    }

    public function clearTitle()
    {
        unset($this->title);
    }

    /**
     * Returns the unboxed value from <code>getTitle()</code>

     * По шаблонному названию индикатора.
     * Поиск производится по подстроке
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue title = 4;</code>
     * @return string|null
     */
    public function getTitleUnwrapped()
    {
        return $this->readWrapperValue("title");
    }

    /**
     * По шаблонному названию индикатора.
     * Поиск производится по подстроке
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue title = 4;</code>
     * @param \Google\Protobuf\StringValue $var
     * @return $this
     */
    public function setTitle($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class);
        $this->title = $var;

        return $this;
    }

    /**
     * Sets the field by wrapping a primitive type in a Google\Protobuf\StringValue object.

     * По шаблонному названию индикатора.
     * Поиск производится по подстроке
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue title = 4;</code>
     * @param string|null $var
     * @return $this
     */
    public function setTitleUnwrapped($var)
    {
        $this->writeWrapperValue("title", $var);
        return $this;}

    /**
     * По посреднику получения показаний
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.TemplateIndicator.VendorType indicator_vendor_types = 5;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getIndicatorVendorTypes()
    {
        return $this->indicator_vendor_types;
    }

    /**
     * По посреднику получения показаний
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.TemplateIndicator.VendorType indicator_vendor_types = 5;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setIndicatorVendorTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Keyapis\TelemetryControl\V1\TemplateIndicator\VendorType::class);
        $this->indicator_vendor_types = $arr;

        return $this;
    }

}

