<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/securitycenter/v1/indicator.proto

namespace Google\Cloud\SecurityCenter\V1\Indicator\ProcessSignature;

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

/**
 * A signature corresponding to a YARA rule.
 *
 * Generated from protobuf message <code>google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature</code>
 */
class YaraRuleSignature extends \Google\Protobuf\Internal\Message
{
    /**
     * The name of the YARA rule.
     *
     * Generated from protobuf field <code>string yara_rule = 5;</code>
     */
    private $yara_rule = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $yara_rule
     *           The name of the YARA rule.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Securitycenter\V1\Indicator::initOnce();
        parent::__construct($data);
    }

    /**
     * The name of the YARA rule.
     *
     * Generated from protobuf field <code>string yara_rule = 5;</code>
     * @return string
     */
    public function getYaraRule()
    {
        return $this->yara_rule;
    }

    /**
     * The name of the YARA rule.
     *
     * Generated from protobuf field <code>string yara_rule = 5;</code>
     * @param string $var
     * @return $this
     */
    public function setYaraRule($var)
    {
        GPBUtil::checkString($var, True);
        $this->yara_rule = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(YaraRuleSignature::class, \Google\Cloud\SecurityCenter\V1\Indicator_ProcessSignature_YaraRuleSignature::class);

