<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/device/v1/keyapis_device_device_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.DeviceConfigurationStatusGroupedFilter</code>
 */
class DeviceConfigurationStatusGroupedFilter 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.DeviceConfigurationStatus.ConfigurationType configuration_types = 2;</code>
     */
    private $configuration_types;
    /**
     * По статусам конфигурации настройки
     *
     * Generated from protobuf field <code>repeated .keyapis.device.v1.DeviceConfigurationStatus.StatusType status_types = 3;</code>
     */
    private $status_types;
    /**
     * Флаг, указывающий на готовность настройки к конфигурированию.
     * Значение next_retry_at меньше текущей даты
     *
     * Generated from protobuf field <code>.google.protobuf.BoolValue is_ready_for_retry = 4;</code>
     */
    protected $is_ready_for_retry = null;
    /**
     * Пороговое значение количества попыток.
     * Возвращает записи, у которых retry_count меньше этого значения
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value retry_count_less_then = 5;</code>
     */
    protected $retry_count_less_then = null;

    /**
     * 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 $configuration_types
     *           По типам конфигурации
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $status_types
     *           По статусам конфигурации настройки
     *     @type \Google\Protobuf\BoolValue $is_ready_for_retry
     *           Флаг, указывающий на готовность настройки к конфигурированию.
     *           Значение next_retry_at меньше текущей даты
     *     @type \Google\Protobuf\Int32Value $retry_count_less_then
     *           Пороговое значение количества попыток.
     *           Возвращает записи, у которых retry_count меньше этого значения
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Device\V1\KeyapisDeviceDeviceV1::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.DeviceConfigurationStatus.ConfigurationType configuration_types = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getConfigurationTypes()
    {
        return $this->configuration_types;
    }

    /**
     * По типам конфигурации
     *
     * Generated from protobuf field <code>repeated .keyapis.device.v1.DeviceConfigurationStatus.ConfigurationType configuration_types = 2;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setConfigurationTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Keyapis\Device\V1\DeviceConfigurationStatus\ConfigurationType::class);
        $this->configuration_types = $arr;

        return $this;
    }

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

    /**
     * По статусам конфигурации настройки
     *
     * Generated from protobuf field <code>repeated .keyapis.device.v1.DeviceConfigurationStatus.StatusType status_types = 3;</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\DeviceConfigurationStatus\StatusType::class);
        $this->status_types = $arr;

        return $this;
    }

    /**
     * Флаг, указывающий на готовность настройки к конфигурированию.
     * Значение next_retry_at меньше текущей даты
     *
     * Generated from protobuf field <code>.google.protobuf.BoolValue is_ready_for_retry = 4;</code>
     * @return \Google\Protobuf\BoolValue|null
     */
    public function getIsReadyForRetry()
    {
        return $this->is_ready_for_retry;
    }

    public function hasIsReadyForRetry()
    {
        return isset($this->is_ready_for_retry);
    }

    public function clearIsReadyForRetry()
    {
        unset($this->is_ready_for_retry);
    }

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

     * Флаг, указывающий на готовность настройки к конфигурированию.
     * Значение next_retry_at меньше текущей даты
     *
     * Generated from protobuf field <code>.google.protobuf.BoolValue is_ready_for_retry = 4;</code>
     * @return bool|null
     */
    public function getIsReadyForRetryUnwrapped()
    {
        return $this->readWrapperValue("is_ready_for_retry");
    }

    /**
     * Флаг, указывающий на готовность настройки к конфигурированию.
     * Значение next_retry_at меньше текущей даты
     *
     * Generated from protobuf field <code>.google.protobuf.BoolValue is_ready_for_retry = 4;</code>
     * @param \Google\Protobuf\BoolValue $var
     * @return $this
     */
    public function setIsReadyForRetry($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class);
        $this->is_ready_for_retry = $var;

        return $this;
    }

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

     * Флаг, указывающий на готовность настройки к конфигурированию.
     * Значение next_retry_at меньше текущей даты
     *
     * Generated from protobuf field <code>.google.protobuf.BoolValue is_ready_for_retry = 4;</code>
     * @param bool|null $var
     * @return $this
     */
    public function setIsReadyForRetryUnwrapped($var)
    {
        $this->writeWrapperValue("is_ready_for_retry", $var);
        return $this;}

    /**
     * Пороговое значение количества попыток.
     * Возвращает записи, у которых retry_count меньше этого значения
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value retry_count_less_then = 5;</code>
     * @return \Google\Protobuf\Int32Value|null
     */
    public function getRetryCountLessThen()
    {
        return $this->retry_count_less_then;
    }

    public function hasRetryCountLessThen()
    {
        return isset($this->retry_count_less_then);
    }

    public function clearRetryCountLessThen()
    {
        unset($this->retry_count_less_then);
    }

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

     * Пороговое значение количества попыток.
     * Возвращает записи, у которых retry_count меньше этого значения
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value retry_count_less_then = 5;</code>
     * @return int|null
     */
    public function getRetryCountLessThenUnwrapped()
    {
        return $this->readWrapperValue("retry_count_less_then");
    }

    /**
     * Пороговое значение количества попыток.
     * Возвращает записи, у которых retry_count меньше этого значения
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value retry_count_less_then = 5;</code>
     * @param \Google\Protobuf\Int32Value $var
     * @return $this
     */
    public function setRetryCountLessThen($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class);
        $this->retry_count_less_then = $var;

        return $this;
    }

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

     * Пороговое значение количества попыток.
     * Возвращает записи, у которых retry_count меньше этого значения
     *
     * Generated from protobuf field <code>.google.protobuf.Int32Value retry_count_less_then = 5;</code>
     * @param int|null $var
     * @return $this
     */
    public function setRetryCountLessThenUnwrapped($var)
    {
        $this->writeWrapperValue("retry_count_less_then", $var);
        return $this;}

}

