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

namespace Keyapis\AccessControl\V1;

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

/**
 * Задача на удаление ключей со всех устройств.
 * Очередь key.access_control.delete_rfids_from_all_devices
 *
 * Generated from protobuf message <code>keyapis.access_control.v1.DeleteRfidsFromAllDevicesTask</code>
 */
class DeleteRfidsFromAllDevicesTask extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор запроса
     *
     * Generated from protobuf field <code>string request_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $request_id = '';
    /**
     * Список ключей
     *
     * Generated from protobuf field <code>repeated .keyapis.access_control.v1.DeleteRfidsFromAllDevicesTask.Rfid rfids = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $rfids;
    /**
     * Удаление без ожидания ответа от устройства
     *
     * Generated from protobuf field <code>.google.protobuf.BoolValue is_force_delete = 3;</code>
     */
    protected $is_force_delete = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $request_id
     *           Идентификатор запроса
     *     @type array<\Keyapis\AccessControl\V1\DeleteRfidsFromAllDevicesTask\Rfid>|\Google\Protobuf\Internal\RepeatedField $rfids
     *           Список ключей
     *     @type \Google\Protobuf\BoolValue $is_force_delete
     *           Удаление без ожидания ответа от устройства
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\AccessControl\V1\KeyapisAccessControlEvents1::initOnce();
        parent::__construct($data);
    }

    /**
     * Идентификатор запроса
     *
     * Generated from protobuf field <code>string request_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getRequestId()
    {
        return $this->request_id;
    }

    /**
     * Идентификатор запроса
     *
     * Generated from protobuf field <code>string request_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setRequestId($var)
    {
        GPBUtil::checkString($var, True);
        $this->request_id = $var;

        return $this;
    }

    /**
     * Список ключей
     *
     * Generated from protobuf field <code>repeated .keyapis.access_control.v1.DeleteRfidsFromAllDevicesTask.Rfid rfids = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getRfids()
    {
        return $this->rfids;
    }

    /**
     * Список ключей
     *
     * Generated from protobuf field <code>repeated .keyapis.access_control.v1.DeleteRfidsFromAllDevicesTask.Rfid rfids = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param array<\Keyapis\AccessControl\V1\DeleteRfidsFromAllDevicesTask\Rfid>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setRfids($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Keyapis\AccessControl\V1\DeleteRfidsFromAllDevicesTask\Rfid::class);
        $this->rfids = $arr;

        return $this;
    }

    /**
     * Удаление без ожидания ответа от устройства
     *
     * Generated from protobuf field <code>.google.protobuf.BoolValue is_force_delete = 3;</code>
     * @return \Google\Protobuf\BoolValue|null
     */
    public function getIsForceDelete()
    {
        return $this->is_force_delete;
    }

    public function hasIsForceDelete()
    {
        return isset($this->is_force_delete);
    }

    public function clearIsForceDelete()
    {
        unset($this->is_force_delete);
    }

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

     * Удаление без ожидания ответа от устройства
     *
     * Generated from protobuf field <code>.google.protobuf.BoolValue is_force_delete = 3;</code>
     * @return bool|null
     */
    public function getIsForceDeleteUnwrapped()
    {
        return $this->readWrapperValue("is_force_delete");
    }

    /**
     * Удаление без ожидания ответа от устройства
     *
     * Generated from protobuf field <code>.google.protobuf.BoolValue is_force_delete = 3;</code>
     * @param \Google\Protobuf\BoolValue $var
     * @return $this
     */
    public function setIsForceDelete($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class);
        $this->is_force_delete = $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_force_delete = 3;</code>
     * @param bool|null $var
     * @return $this
     */
    public function setIsForceDeleteUnwrapped($var)
    {
        $this->writeWrapperValue("is_force_delete", $var);
        return $this;}

}

