<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/websecurityscanner/v1beta/finding_addon.proto

namespace Google\Cloud\WebSecurityScanner\V1beta;

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

/**
 * Information reported for an outdated library.
 *
 * Generated from protobuf message <code>google.cloud.websecurityscanner.v1beta.OutdatedLibrary</code>
 */
class OutdatedLibrary extends \Google\Protobuf\Internal\Message
{
    /**
     * The name of the outdated library.
     *
     * Generated from protobuf field <code>string library_name = 1;</code>
     */
    private $library_name = '';
    /**
     * The version number.
     *
     * Generated from protobuf field <code>string version = 2;</code>
     */
    private $version = '';
    /**
     * URLs to learn more information about the vulnerabilities in the library.
     *
     * Generated from protobuf field <code>repeated string learn_more_urls = 3;</code>
     */
    private $learn_more_urls;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $library_name
     *           The name of the outdated library.
     *     @type string $version
     *           The version number.
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $learn_more_urls
     *           URLs to learn more information about the vulnerabilities in the library.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Websecurityscanner\V1Beta\FindingAddon::initOnce();
        parent::__construct($data);
    }

    /**
     * The name of the outdated library.
     *
     * Generated from protobuf field <code>string library_name = 1;</code>
     * @return string
     */
    public function getLibraryName()
    {
        return $this->library_name;
    }

    /**
     * The name of the outdated library.
     *
     * Generated from protobuf field <code>string library_name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setLibraryName($var)
    {
        GPBUtil::checkString($var, True);
        $this->library_name = $var;

        return $this;
    }

    /**
     * The version number.
     *
     * Generated from protobuf field <code>string version = 2;</code>
     * @return string
     */
    public function getVersion()
    {
        return $this->version;
    }

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

        return $this;
    }

    /**
     * URLs to learn more information about the vulnerabilities in the library.
     *
     * Generated from protobuf field <code>repeated string learn_more_urls = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getLearnMoreUrls()
    {
        return $this->learn_more_urls;
    }

    /**
     * URLs to learn more information about the vulnerabilities in the library.
     *
     * Generated from protobuf field <code>repeated string learn_more_urls = 3;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setLearnMoreUrls($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->learn_more_urls = $arr;

        return $this;
    }

}

