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

namespace Grafeas\V1\ComplianceNote;

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

/**
 * A compliance check that is a CIS benchmark.
 *
 * Generated from protobuf message <code>grafeas.v1.ComplianceNote.CisBenchmark</code>
 */
class CisBenchmark extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 profile_level = 1;</code>
     */
    private $profile_level = 0;
    /**
     * Generated from protobuf field <code>.grafeas.v1.Severity severity = 2;</code>
     */
    private $severity = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $profile_level
     *     @type int $severity
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Grafeas\V1\Compliance::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>int32 profile_level = 1;</code>
     * @return int
     */
    public function getProfileLevel()
    {
        return $this->profile_level;
    }

    /**
     * Generated from protobuf field <code>int32 profile_level = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setProfileLevel($var)
    {
        GPBUtil::checkInt32($var);
        $this->profile_level = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.grafeas.v1.Severity severity = 2;</code>
     * @return int
     */
    public function getSeverity()
    {
        return $this->severity;
    }

    /**
     * Generated from protobuf field <code>.grafeas.v1.Severity severity = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setSeverity($var)
    {
        GPBUtil::checkEnum($var, \Grafeas\V1\Severity::class);
        $this->severity = $var;

        return $this;
    }

}


