<?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;

/**
 * Additional Links
 *
 * Generated from protobuf message <code>google.cloud.securitycenter.v1.Reference</code>
 */
class Reference extends \Google\Protobuf\Internal\Message
{
    /**
     * Source of the reference e.g. NVD
     *
     * Generated from protobuf field <code>string source = 1;</code>
     */
    private $source = '';
    /**
     * Uri for the mentioned source e.g.
     * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527.
     *
     * Generated from protobuf field <code>string uri = 2;</code>
     */
    private $uri = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $source
     *           Source of the reference e.g. NVD
     *     @type string $uri
     *           Uri for the mentioned source e.g.
     *           https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Securitycenter\V1\Vulnerability::initOnce();
        parent::__construct($data);
    }

    /**
     * Source of the reference e.g. NVD
     *
     * Generated from protobuf field <code>string source = 1;</code>
     * @return string
     */
    public function getSource()
    {
        return $this->source;
    }

    /**
     * Source of the reference e.g. NVD
     *
     * Generated from protobuf field <code>string source = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setSource($var)
    {
        GPBUtil::checkString($var, True);
        $this->source = $var;

        return $this;
    }

    /**
     * Uri for the mentioned source e.g.
     * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527.
     *
     * Generated from protobuf field <code>string uri = 2;</code>
     * @return string
     */
    public function getUri()
    {
        return $this->uri;
    }

    /**
     * Uri for the mentioned source e.g.
     * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527.
     *
     * Generated from protobuf field <code>string uri = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->uri = $var;

        return $this;
    }

}

