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

namespace Google\Cloud\SecurityCenter\V1;

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

/**
 * Refers to common vulnerability fields e.g. cve, cvss, cwe etc.
 *
 * Generated from protobuf message <code>google.cloud.securitycenter.v1.Vulnerability</code>
 */
class Vulnerability extends \Google\Protobuf\Internal\Message
{
    /**
     * CVE stands for Common Vulnerabilities and Exposures
     * (https://cve.mitre.org/about/)
     *
     * Generated from protobuf field <code>.google.cloud.securitycenter.v1.Cve cve = 1;</code>
     */
    private $cve = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\SecurityCenter\V1\Cve $cve
     *           CVE stands for Common Vulnerabilities and Exposures
     *           (https://cve.mitre.org/about/)
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Securitycenter\V1\Vulnerability::initOnce();
        parent::__construct($data);
    }

    /**
     * CVE stands for Common Vulnerabilities and Exposures
     * (https://cve.mitre.org/about/)
     *
     * Generated from protobuf field <code>.google.cloud.securitycenter.v1.Cve cve = 1;</code>
     * @return \Google\Cloud\SecurityCenter\V1\Cve|null
     */
    public function getCve()
    {
        return $this->cve;
    }

    public function hasCve()
    {
        return isset($this->cve);
    }

    public function clearCve()
    {
        unset($this->cve);
    }

    /**
     * CVE stands for Common Vulnerabilities and Exposures
     * (https://cve.mitre.org/about/)
     *
     * Generated from protobuf field <code>.google.cloud.securitycenter.v1.Cve cve = 1;</code>
     * @param \Google\Cloud\SecurityCenter\V1\Cve $var
     * @return $this
     */
    public function setCve($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\SecurityCenter\V1\Cve::class);
        $this->cve = $var;

        return $this;
    }

}

