<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/telemetry_control/v1/keyapis_telemetry_control_device_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.Indicator</code>
 */
class Indicator extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор
     *
     * Generated from protobuf field <code>int32 id = 1;</code>
     */
    protected $id = 0;
    /**
     * Идентификатор прибора учета(ПУ)
     *
     * Generated from protobuf field <code>int32 device_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $device_id = 0;
    /**
     * Название
     *
     * Generated from protobuf field <code>string title = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $title = '';
    /**
     * Тип единицы измерения, в которой интерпретировано, получаемое измерение
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.Indicator.UnitType unit_type = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $unit_type = 0;
    /**
     * Тип измерения
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.Indicator.SignType sign_type = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $sign_type = 0;
    /**
     * Дата создания
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $created_at = null;
    /**
     * Дата последнего изменения.
     * Заполняется и обновляется сервером.
     * Заполняется при создании и изменении.
     * Является версией объекта
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp changed_at = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $changed_at = null;
    /**
     * Флаг видимости индикатора для клиента
     *
     * Generated from protobuf field <code>bool is_individual = 8;</code>
     */
    protected $is_individual = false;
    /**
     * Код для совместимости с поставщиком метрик
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue compatibility_code = 9;</code>
     */
    protected $compatibility_code = null;
    /**
     * Тип архивности показаний
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.Indicator.ArchiveType archive_type = 10;</code>
     */
    protected $archive_type = 0;
    /**
     * Тип единицы измерения для отображения измерения.
     * При UNIT_TYPE_UNKNOWN отображаемые единицы совпадают с единицами источников значений, преобразования единиц не происходит.
     * Применяется после коэффициента
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.Indicator.UnitType presentation_unit_type = 11;</code>
     */
    protected $presentation_unit_type = 0;
    /**
     * Коэффициент, на который умножается отображаемое значение.
     * Применяется перед преобразованием единиц измерений к presentation_unit_type и после применения поправки
     *
     * Generated from protobuf field <code>.google.protobuf.FloatValue coefficient = 12;</code>
     */
    protected $coefficient = null;
    /**
     * Величина поправки к отображаемому значению.
     * Применяется перед применением коэффициента
     *
     * Generated from protobuf field <code>.google.protobuf.FloatValue shift = 13;</code>
     */
    protected $shift = null;
    /**
     * Количество возвращаемых десятичных знаков при округлении итогового значения.
     * При пустом параметре округления не происходит.
     * Применяется после преобразования единиц измерения
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value round_decimal_digits = 14;</code>
     */
    protected $round_decimal_digits = null;
    /**
     * Ожидаемая частота поступления показаний в днях
     *
     * Generated from protobuf field <code>int32 metric_expected_freq = 15;</code>
     */
    protected $metric_expected_freq = 0;
    /**
     * Номер канала для многоканального ПУ
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue channel_number = 16;</code>
     */
    protected $channel_number = null;
    /**
     * Порядковый номер канала для многоканального ПУ
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value channel_order = 17;</code>
     */
    protected $channel_order = null;
    /**
     * Посредник получения показаний
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.Indicator.VendorType vendor_type = 18;</code>
     */
    protected $vendor_type = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $id
     *           Идентификатор
     *     @type int $device_id
     *           Идентификатор прибора учета(ПУ)
     *     @type string $title
     *           Название
     *     @type int $unit_type
     *           Тип единицы измерения, в которой интерпретировано, получаемое измерение
     *     @type int $sign_type
     *           Тип измерения
     *     @type \Google\Protobuf\Timestamp $created_at
     *           Дата создания
     *     @type \Google\Protobuf\Timestamp $changed_at
     *           Дата последнего изменения.
     *           Заполняется и обновляется сервером.
     *           Заполняется при создании и изменении.
     *           Является версией объекта
     *     @type bool $is_individual
     *           Флаг видимости индикатора для клиента
     *     @type \Google\Protobuf\StringValue $compatibility_code
     *           Код для совместимости с поставщиком метрик
     *     @type int $archive_type
     *           Тип архивности показаний
     *     @type int $presentation_unit_type
     *           Тип единицы измерения для отображения измерения.
     *           При UNIT_TYPE_UNKNOWN отображаемые единицы совпадают с единицами источников значений, преобразования единиц не происходит.
     *           Применяется после коэффициента
     *     @type \Google\Protobuf\FloatValue $coefficient
     *           Коэффициент, на который умножается отображаемое значение.
     *           Применяется перед преобразованием единиц измерений к presentation_unit_type и после применения поправки
     *     @type \Google\Protobuf\FloatValue $shift
     *           Величина поправки к отображаемому значению.
     *           Применяется перед применением коэффициента
     *     @type \Google\Protobuf\Int32Value $round_decimal_digits
     *           Количество возвращаемых десятичных знаков при округлении итогового значения.
     *           При пустом параметре округления не происходит.
     *           Применяется после преобразования единиц измерения
     *     @type int $metric_expected_freq
     *           Ожидаемая частота поступления показаний в днях
     *     @type \Google\Protobuf\StringValue $channel_number
     *           Номер канала для многоканального ПУ
     *     @type \Google\Protobuf\Int32Value $channel_order
     *           Порядковый номер канала для многоканального ПУ
     *     @type int $vendor_type
     *           Посредник получения показаний
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\TelemetryControl\V1\KeyapisTelemetryControlDeviceV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Идентификатор
     *
     * Generated from protobuf field <code>int32 id = 1;</code>
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Идентификатор
     *
     * Generated from protobuf field <code>int32 id = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setId($var)
    {
        GPBUtil::checkInt32($var);
        $this->id = $var;

        return $this;
    }

    /**
     * Идентификатор прибора учета(ПУ)
     *
     * Generated from protobuf field <code>int32 device_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getDeviceId()
    {
        return $this->device_id;
    }

    /**
     * Идентификатор прибора учета(ПУ)
     *
     * Generated from protobuf field <code>int32 device_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setDeviceId($var)
    {
        GPBUtil::checkInt32($var);
        $this->device_id = $var;

        return $this;
    }

    /**
     * Название
     *
     * Generated from protobuf field <code>string title = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * Название
     *
     * Generated from protobuf field <code>string title = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setTitle($var)
    {
        GPBUtil::checkString($var, True);
        $this->title = $var;

        return $this;
    }

    /**
     * Тип единицы измерения, в которой интерпретировано, получаемое измерение
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.Indicator.UnitType unit_type = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getUnitType()
    {
        return $this->unit_type;
    }

    /**
     * Тип единицы измерения, в которой интерпретировано, получаемое измерение
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.Indicator.UnitType unit_type = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setUnitType($var)
    {
        GPBUtil::checkEnum($var, \Keyapis\TelemetryControl\V1\Indicator\UnitType::class);
        $this->unit_type = $var;

        return $this;
    }

    /**
     * Тип измерения
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.Indicator.SignType sign_type = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getSignType()
    {
        return $this->sign_type;
    }

    /**
     * Тип измерения
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.Indicator.SignType sign_type = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setSignType($var)
    {
        GPBUtil::checkEnum($var, \Keyapis\TelemetryControl\V1\Indicator\SignType::class);
        $this->sign_type = $var;

        return $this;
    }

    /**
     * Дата создания
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getCreatedAt()
    {
        return $this->created_at;
    }

    public function hasCreatedAt()
    {
        return isset($this->created_at);
    }

    public function clearCreatedAt()
    {
        unset($this->created_at);
    }

    /**
     * Дата создания
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setCreatedAt($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->created_at = $var;

        return $this;
    }

    /**
     * Дата последнего изменения.
     * Заполняется и обновляется сервером.
     * Заполняется при создании и изменении.
     * Является версией объекта
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp changed_at = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getChangedAt()
    {
        return $this->changed_at;
    }

    public function hasChangedAt()
    {
        return isset($this->changed_at);
    }

    public function clearChangedAt()
    {
        unset($this->changed_at);
    }

    /**
     * Дата последнего изменения.
     * Заполняется и обновляется сервером.
     * Заполняется при создании и изменении.
     * Является версией объекта
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp changed_at = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setChangedAt($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->changed_at = $var;

        return $this;
    }

    /**
     * Флаг видимости индикатора для клиента
     *
     * Generated from protobuf field <code>bool is_individual = 8;</code>
     * @return bool
     */
    public function getIsIndividual()
    {
        return $this->is_individual;
    }

    /**
     * Флаг видимости индикатора для клиента
     *
     * Generated from protobuf field <code>bool is_individual = 8;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsIndividual($var)
    {
        GPBUtil::checkBool($var);
        $this->is_individual = $var;

        return $this;
    }

    /**
     * Код для совместимости с поставщиком метрик
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue compatibility_code = 9;</code>
     * @return \Google\Protobuf\StringValue|null
     */
    public function getCompatibilityCode()
    {
        return $this->compatibility_code;
    }

    public function hasCompatibilityCode()
    {
        return isset($this->compatibility_code);
    }

    public function clearCompatibilityCode()
    {
        unset($this->compatibility_code);
    }

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

     * Код для совместимости с поставщиком метрик
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue compatibility_code = 9;</code>
     * @return string|null
     */
    public function getCompatibilityCodeUnwrapped()
    {
        return $this->readWrapperValue("compatibility_code");
    }

    /**
     * Код для совместимости с поставщиком метрик
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue compatibility_code = 9;</code>
     * @param \Google\Protobuf\StringValue $var
     * @return $this
     */
    public function setCompatibilityCode($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class);
        $this->compatibility_code = $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 compatibility_code = 9;</code>
     * @param string|null $var
     * @return $this
     */
    public function setCompatibilityCodeUnwrapped($var)
    {
        $this->writeWrapperValue("compatibility_code", $var);
        return $this;}

    /**
     * Тип архивности показаний
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.Indicator.ArchiveType archive_type = 10;</code>
     * @return int
     */
    public function getArchiveType()
    {
        return $this->archive_type;
    }

    /**
     * Тип архивности показаний
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.Indicator.ArchiveType archive_type = 10;</code>
     * @param int $var
     * @return $this
     */
    public function setArchiveType($var)
    {
        GPBUtil::checkEnum($var, \Keyapis\TelemetryControl\V1\Indicator\ArchiveType::class);
        $this->archive_type = $var;

        return $this;
    }

    /**
     * Тип единицы измерения для отображения измерения.
     * При UNIT_TYPE_UNKNOWN отображаемые единицы совпадают с единицами источников значений, преобразования единиц не происходит.
     * Применяется после коэффициента
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.Indicator.UnitType presentation_unit_type = 11;</code>
     * @return int
     */
    public function getPresentationUnitType()
    {
        return $this->presentation_unit_type;
    }

    /**
     * Тип единицы измерения для отображения измерения.
     * При UNIT_TYPE_UNKNOWN отображаемые единицы совпадают с единицами источников значений, преобразования единиц не происходит.
     * Применяется после коэффициента
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.Indicator.UnitType presentation_unit_type = 11;</code>
     * @param int $var
     * @return $this
     */
    public function setPresentationUnitType($var)
    {
        GPBUtil::checkEnum($var, \Keyapis\TelemetryControl\V1\Indicator\UnitType::class);
        $this->presentation_unit_type = $var;

        return $this;
    }

    /**
     * Коэффициент, на который умножается отображаемое значение.
     * Применяется перед преобразованием единиц измерений к presentation_unit_type и после применения поправки
     *
     * Generated from protobuf field <code>.google.protobuf.FloatValue coefficient = 12;</code>
     * @return \Google\Protobuf\FloatValue|null
     */
    public function getCoefficient()
    {
        return $this->coefficient;
    }

    public function hasCoefficient()
    {
        return isset($this->coefficient);
    }

    public function clearCoefficient()
    {
        unset($this->coefficient);
    }

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

     * Коэффициент, на который умножается отображаемое значение.
     * Применяется перед преобразованием единиц измерений к presentation_unit_type и после применения поправки
     *
     * Generated from protobuf field <code>.google.protobuf.FloatValue coefficient = 12;</code>
     * @return float|null
     */
    public function getCoefficientUnwrapped()
    {
        return $this->readWrapperValue("coefficient");
    }

    /**
     * Коэффициент, на который умножается отображаемое значение.
     * Применяется перед преобразованием единиц измерений к presentation_unit_type и после применения поправки
     *
     * Generated from protobuf field <code>.google.protobuf.FloatValue coefficient = 12;</code>
     * @param \Google\Protobuf\FloatValue $var
     * @return $this
     */
    public function setCoefficient($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\FloatValue::class);
        $this->coefficient = $var;

        return $this;
    }

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

     * Коэффициент, на который умножается отображаемое значение.
     * Применяется перед преобразованием единиц измерений к presentation_unit_type и после применения поправки
     *
     * Generated from protobuf field <code>.google.protobuf.FloatValue coefficient = 12;</code>
     * @param float|null $var
     * @return $this
     */
    public function setCoefficientUnwrapped($var)
    {
        $this->writeWrapperValue("coefficient", $var);
        return $this;}

    /**
     * Величина поправки к отображаемому значению.
     * Применяется перед применением коэффициента
     *
     * Generated from protobuf field <code>.google.protobuf.FloatValue shift = 13;</code>
     * @return \Google\Protobuf\FloatValue|null
     */
    public function getShift()
    {
        return $this->shift;
    }

    public function hasShift()
    {
        return isset($this->shift);
    }

    public function clearShift()
    {
        unset($this->shift);
    }

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

     * Величина поправки к отображаемому значению.
     * Применяется перед применением коэффициента
     *
     * Generated from protobuf field <code>.google.protobuf.FloatValue shift = 13;</code>
     * @return float|null
     */
    public function getShiftUnwrapped()
    {
        return $this->readWrapperValue("shift");
    }

    /**
     * Величина поправки к отображаемому значению.
     * Применяется перед применением коэффициента
     *
     * Generated from protobuf field <code>.google.protobuf.FloatValue shift = 13;</code>
     * @param \Google\Protobuf\FloatValue $var
     * @return $this
     */
    public function setShift($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\FloatValue::class);
        $this->shift = $var;

        return $this;
    }

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

     * Величина поправки к отображаемому значению.
     * Применяется перед применением коэффициента
     *
     * Generated from protobuf field <code>.google.protobuf.FloatValue shift = 13;</code>
     * @param float|null $var
     * @return $this
     */
    public function setShiftUnwrapped($var)
    {
        $this->writeWrapperValue("shift", $var);
        return $this;}

    /**
     * Количество возвращаемых десятичных знаков при округлении итогового значения.
     * При пустом параметре округления не происходит.
     * Применяется после преобразования единиц измерения
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value round_decimal_digits = 14;</code>
     * @return \Google\Protobuf\Int32Value|null
     */
    public function getRoundDecimalDigits()
    {
        return $this->round_decimal_digits;
    }

    public function hasRoundDecimalDigits()
    {
        return isset($this->round_decimal_digits);
    }

    public function clearRoundDecimalDigits()
    {
        unset($this->round_decimal_digits);
    }

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

     * Количество возвращаемых десятичных знаков при округлении итогового значения.
     * При пустом параметре округления не происходит.
     * Применяется после преобразования единиц измерения
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value round_decimal_digits = 14;</code>
     * @return int|null
     */
    public function getRoundDecimalDigitsUnwrapped()
    {
        return $this->readWrapperValue("round_decimal_digits");
    }

    /**
     * Количество возвращаемых десятичных знаков при округлении итогового значения.
     * При пустом параметре округления не происходит.
     * Применяется после преобразования единиц измерения
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value round_decimal_digits = 14;</code>
     * @param \Google\Protobuf\Int32Value $var
     * @return $this
     */
    public function setRoundDecimalDigits($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class);
        $this->round_decimal_digits = $var;

        return $this;
    }

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

     * Количество возвращаемых десятичных знаков при округлении итогового значения.
     * При пустом параметре округления не происходит.
     * Применяется после преобразования единиц измерения
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value round_decimal_digits = 14;</code>
     * @param int|null $var
     * @return $this
     */
    public function setRoundDecimalDigitsUnwrapped($var)
    {
        $this->writeWrapperValue("round_decimal_digits", $var);
        return $this;}

    /**
     * Ожидаемая частота поступления показаний в днях
     *
     * Generated from protobuf field <code>int32 metric_expected_freq = 15;</code>
     * @return int
     */
    public function getMetricExpectedFreq()
    {
        return $this->metric_expected_freq;
    }

    /**
     * Ожидаемая частота поступления показаний в днях
     *
     * Generated from protobuf field <code>int32 metric_expected_freq = 15;</code>
     * @param int $var
     * @return $this
     */
    public function setMetricExpectedFreq($var)
    {
        GPBUtil::checkInt32($var);
        $this->metric_expected_freq = $var;

        return $this;
    }

    /**
     * Номер канала для многоканального ПУ
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue channel_number = 16;</code>
     * @return \Google\Protobuf\StringValue|null
     */
    public function getChannelNumber()
    {
        return $this->channel_number;
    }

    public function hasChannelNumber()
    {
        return isset($this->channel_number);
    }

    public function clearChannelNumber()
    {
        unset($this->channel_number);
    }

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

     * Номер канала для многоканального ПУ
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue channel_number = 16;</code>
     * @return string|null
     */
    public function getChannelNumberUnwrapped()
    {
        return $this->readWrapperValue("channel_number");
    }

    /**
     * Номер канала для многоканального ПУ
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue channel_number = 16;</code>
     * @param \Google\Protobuf\StringValue $var
     * @return $this
     */
    public function setChannelNumber($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class);
        $this->channel_number = $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 channel_number = 16;</code>
     * @param string|null $var
     * @return $this
     */
    public function setChannelNumberUnwrapped($var)
    {
        $this->writeWrapperValue("channel_number", $var);
        return $this;}

    /**
     * Порядковый номер канала для многоканального ПУ
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value channel_order = 17;</code>
     * @return \Google\Protobuf\Int32Value|null
     */
    public function getChannelOrder()
    {
        return $this->channel_order;
    }

    public function hasChannelOrder()
    {
        return isset($this->channel_order);
    }

    public function clearChannelOrder()
    {
        unset($this->channel_order);
    }

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

     * Порядковый номер канала для многоканального ПУ
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value channel_order = 17;</code>
     * @return int|null
     */
    public function getChannelOrderUnwrapped()
    {
        return $this->readWrapperValue("channel_order");
    }

    /**
     * Порядковый номер канала для многоканального ПУ
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value channel_order = 17;</code>
     * @param \Google\Protobuf\Int32Value $var
     * @return $this
     */
    public function setChannelOrder($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class);
        $this->channel_order = $var;

        return $this;
    }

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

     * Порядковый номер канала для многоканального ПУ
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value channel_order = 17;</code>
     * @param int|null $var
     * @return $this
     */
    public function setChannelOrderUnwrapped($var)
    {
        $this->writeWrapperValue("channel_order", $var);
        return $this;}

    /**
     * Посредник получения показаний
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.Indicator.VendorType vendor_type = 18;</code>
     * @return int
     */
    public function getVendorType()
    {
        return $this->vendor_type;
    }

    /**
     * Посредник получения показаний
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.Indicator.VendorType vendor_type = 18;</code>
     * @param int $var
     * @return $this
     */
    public function setVendorType($var)
    {
        GPBUtil::checkEnum($var, \Keyapis\TelemetryControl\V1\Indicator\VendorType::class);
        $this->vendor_type = $var;

        return $this;
    }

}

