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

namespace Keyapis\Device\V1\ConfigureDeviceTask;

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

/**
 * Профиль шифрования
 *
 * Generated from protobuf message <code>keyapis.device.v1.ConfigureDeviceTask.EncryptionProfile</code>
 */
class EncryptionProfile extends \Google\Protobuf\Internal\Message
{
    /**
     * Номер сектора
     *
     * Generated from protobuf field <code>int32 sector_number = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $sector_number = 0;
    /**
     * Номер блока
     *
     * Generated from protobuf field <code>int32 block_number = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $block_number = 0;
    /**
     * aes ключ
     *
     * Generated from protobuf field <code>string aes_key = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $aes_key = '';
    /**
     * Индекс первого символа для секрета
     *
     * Generated from protobuf field <code>int32 start_index = 4;</code>
     */
    protected $start_index = 0;
    /**
     * Индекс последнего символа для секрета
     *
     * Generated from protobuf field <code>int32 end_index = 5;</code>
     */
    protected $end_index = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $sector_number
     *           Номер сектора
     *     @type int $block_number
     *           Номер блока
     *     @type string $aes_key
     *           aes ключ
     *     @type int $start_index
     *           Индекс первого символа для секрета
     *     @type int $end_index
     *           Индекс последнего символа для секрета
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Device\V1\KeyapisDeviceEventsV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Номер сектора
     *
     * Generated from protobuf field <code>int32 sector_number = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getSectorNumber()
    {
        return $this->sector_number;
    }

    /**
     * Номер сектора
     *
     * Generated from protobuf field <code>int32 sector_number = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setSectorNumber($var)
    {
        GPBUtil::checkInt32($var);
        $this->sector_number = $var;

        return $this;
    }

    /**
     * Номер блока
     *
     * Generated from protobuf field <code>int32 block_number = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getBlockNumber()
    {
        return $this->block_number;
    }

    /**
     * Номер блока
     *
     * Generated from protobuf field <code>int32 block_number = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setBlockNumber($var)
    {
        GPBUtil::checkInt32($var);
        $this->block_number = $var;

        return $this;
    }

    /**
     * aes ключ
     *
     * Generated from protobuf field <code>string aes_key = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getAesKey()
    {
        return $this->aes_key;
    }

    /**
     * aes ключ
     *
     * Generated from protobuf field <code>string aes_key = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setAesKey($var)
    {
        GPBUtil::checkString($var, True);
        $this->aes_key = $var;

        return $this;
    }

    /**
     * Индекс первого символа для секрета
     *
     * Generated from protobuf field <code>int32 start_index = 4;</code>
     * @return int
     */
    public function getStartIndex()
    {
        return $this->start_index;
    }

    /**
     * Индекс первого символа для секрета
     *
     * Generated from protobuf field <code>int32 start_index = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setStartIndex($var)
    {
        GPBUtil::checkInt32($var);
        $this->start_index = $var;

        return $this;
    }

    /**
     * Индекс последнего символа для секрета
     *
     * Generated from protobuf field <code>int32 end_index = 5;</code>
     * @return int
     */
    public function getEndIndex()
    {
        return $this->end_index;
    }

    /**
     * Индекс последнего символа для секрета
     *
     * Generated from protobuf field <code>int32 end_index = 5;</code>
     * @param int $var
     * @return $this
     */
    public function setEndIndex($var)
    {
        GPBUtil::checkInt32($var);
        $this->end_index = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EncryptionProfile::class, \Keyapis\Device\V1\ConfigureDeviceTask_EncryptionProfile::class);

