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

namespace Grafeas\V1\VulnerabilityNote;

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

/**
 * Generated from protobuf message <code>grafeas.v1.VulnerabilityNote.WindowsDetail</code>
 */
class WindowsDetail extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The [CPE URI](https://cpe.mitre.org/specification/) this
     * vulnerability affects.
     *
     * Generated from protobuf field <code>string cpe_uri = 1;</code>
     */
    private $cpe_uri = '';
    /**
     * Required. The name of this vulnerability.
     *
     * Generated from protobuf field <code>string name = 2;</code>
     */
    private $name = '';
    /**
     * The description of this vulnerability.
     *
     * Generated from protobuf field <code>string description = 3;</code>
     */
    private $description = '';
    /**
     * Required. The names of the KBs which have hotfixes to mitigate this
     * vulnerability. Note that there may be multiple hotfixes (and thus
     * multiple KBs) that mitigate a given vulnerability. Currently any listed
     * KBs presence is considered a fix.
     *
     * Generated from protobuf field <code>repeated .grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase fixing_kbs = 4;</code>
     */
    private $fixing_kbs;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $cpe_uri
     *           Required. The [CPE URI](https://cpe.mitre.org/specification/) this
     *           vulnerability affects.
     *     @type string $name
     *           Required. The name of this vulnerability.
     *     @type string $description
     *           The description of this vulnerability.
     *     @type array<\Grafeas\V1\VulnerabilityNote\WindowsDetail\KnowledgeBase>|\Google\Protobuf\Internal\RepeatedField $fixing_kbs
     *           Required. The names of the KBs which have hotfixes to mitigate this
     *           vulnerability. Note that there may be multiple hotfixes (and thus
     *           multiple KBs) that mitigate a given vulnerability. Currently any listed
     *           KBs presence is considered a fix.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Grafeas\V1\Vulnerability::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The [CPE URI](https://cpe.mitre.org/specification/) this
     * vulnerability affects.
     *
     * Generated from protobuf field <code>string cpe_uri = 1;</code>
     * @return string
     */
    public function getCpeUri()
    {
        return $this->cpe_uri;
    }

    /**
     * Required. The [CPE URI](https://cpe.mitre.org/specification/) this
     * vulnerability affects.
     *
     * Generated from protobuf field <code>string cpe_uri = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setCpeUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->cpe_uri = $var;

        return $this;
    }

    /**
     * Required. The name of this vulnerability.
     *
     * Generated from protobuf field <code>string name = 2;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Required. The name of this vulnerability.
     *
     * Generated from protobuf field <code>string name = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * The description of this vulnerability.
     *
     * Generated from protobuf field <code>string description = 3;</code>
     * @return string
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * The description of this vulnerability.
     *
     * Generated from protobuf field <code>string description = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setDescription($var)
    {
        GPBUtil::checkString($var, True);
        $this->description = $var;

        return $this;
    }

    /**
     * Required. The names of the KBs which have hotfixes to mitigate this
     * vulnerability. Note that there may be multiple hotfixes (and thus
     * multiple KBs) that mitigate a given vulnerability. Currently any listed
     * KBs presence is considered a fix.
     *
     * Generated from protobuf field <code>repeated .grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase fixing_kbs = 4;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getFixingKbs()
    {
        return $this->fixing_kbs;
    }

    /**
     * Required. The names of the KBs which have hotfixes to mitigate this
     * vulnerability. Note that there may be multiple hotfixes (and thus
     * multiple KBs) that mitigate a given vulnerability. Currently any listed
     * KBs presence is considered a fix.
     *
     * Generated from protobuf field <code>repeated .grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase fixing_kbs = 4;</code>
     * @param array<\Grafeas\V1\VulnerabilityNote\WindowsDetail\KnowledgeBase>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setFixingKbs($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\VulnerabilityNote\WindowsDetail\KnowledgeBase::class);
        $this->fixing_kbs = $arr;

        return $this;
    }

}


