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

namespace Grafeas\V1\VulnerabilityNote\WindowsDetail;

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

/**
 * Generated from protobuf message <code>grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase</code>
 */
class KnowledgeBase extends \Google\Protobuf\Internal\Message
{
    /**
     * The KB name (generally of the form KB[0-9]+ (e.g., KB123456)).
     *
     * Generated from protobuf field <code>string name = 1;</code>
     */
    private $name = '';
    /**
     * A link to the KB in the [Windows update catalog]
     * (https://www.catalog.update.microsoft.com/).
     *
     * Generated from protobuf field <code>string url = 2;</code>
     */
    private $url = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           The KB name (generally of the form KB[0-9]+ (e.g., KB123456)).
     *     @type string $url
     *           A link to the KB in the [Windows update catalog]
     *           (https://www.catalog.update.microsoft.com/).
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Grafeas\V1\Vulnerability::initOnce();
        parent::__construct($data);
    }

    /**
     * The KB name (generally of the form KB[0-9]+ (e.g., KB123456)).
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * The KB name (generally of the form KB[0-9]+ (e.g., KB123456)).
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * A link to the KB in the [Windows update catalog]
     * (https://www.catalog.update.microsoft.com/).
     *
     * Generated from protobuf field <code>string url = 2;</code>
     * @return string
     */
    public function getUrl()
    {
        return $this->url;
    }

    /**
     * A link to the KB in the [Windows update catalog]
     * (https://www.catalog.update.microsoft.com/).
     *
     * Generated from protobuf field <code>string url = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->url = $var;

        return $this;
    }

}


