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

namespace Deviceapis\Device\V1;

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

/**
 * Фильтр по профилям шифрования
 *
 * Generated from protobuf message <code>deviceapis.device.v1.EncryptionProfileFilter</code>
 */
class EncryptionProfileFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * Поиск по тексту.
     * Если значение не передано то поиск по нему не производится.
     * Поиск производится по полям:
     * # - Наименование
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue text = 1;</code>
     */
    protected $text = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Protobuf\StringValue $text
     *           Поиск по тексту.
     *           Если значение не передано то поиск по нему не производится.
     *           Поиск производится по полям:
     *           # - Наименование
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Deviceapis\Device\V1\DeviceapisDeviceEncryptionProfileV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Поиск по тексту.
     * Если значение не передано то поиск по нему не производится.
     * Поиск производится по полям:
     * # - Наименование
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue text = 1;</code>
     * @return \Google\Protobuf\StringValue|null
     */
    public function getText()
    {
        return $this->text;
    }

    public function hasText()
    {
        return isset($this->text);
    }

    public function clearText()
    {
        unset($this->text);
    }

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

     * Поиск по тексту.
     * Если значение не передано то поиск по нему не производится.
     * Поиск производится по полям:
     * # - Наименование
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue text = 1;</code>
     * @return string|null
     */
    public function getTextUnwrapped()
    {
        return $this->readWrapperValue("text");
    }

    /**
     * Поиск по тексту.
     * Если значение не передано то поиск по нему не производится.
     * Поиск производится по полям:
     * # - Наименование
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue text = 1;</code>
     * @param \Google\Protobuf\StringValue $var
     * @return $this
     */
    public function setText($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class);
        $this->text = $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 text = 1;</code>
     * @param string|null $var
     * @return $this
     */
    public function setTextUnwrapped($var)
    {
        $this->writeWrapperValue("text", $var);
        return $this;}

}

