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

namespace Google\Cloud\ContainerAnalysis\V1\VulnerabilityOccurrencesSummary;

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

/**
 * Per resource and severity counts of fixable and total vulnerabilities.
 *
 * Generated from protobuf message <code>google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary.FixableTotalByDigest</code>
 */
class FixableTotalByDigest extends \Google\Protobuf\Internal\Message
{
    /**
     * The affected resource.
     *
     * Generated from protobuf field <code>string resource_uri = 1;</code>
     */
    private $resource_uri = '';
    /**
     * The severity for this count. SEVERITY_UNSPECIFIED indicates total across
     * all severities.
     *
     * Generated from protobuf field <code>.grafeas.v1.Severity severity = 2;</code>
     */
    private $severity = 0;
    /**
     * The number of fixable vulnerabilities associated with this resource.
     *
     * Generated from protobuf field <code>int64 fixable_count = 3;</code>
     */
    private $fixable_count = 0;
    /**
     * The total number of vulnerabilities associated with this resource.
     *
     * Generated from protobuf field <code>int64 total_count = 4;</code>
     */
    private $total_count = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $resource_uri
     *           The affected resource.
     *     @type int $severity
     *           The severity for this count. SEVERITY_UNSPECIFIED indicates total across
     *           all severities.
     *     @type int|string $fixable_count
     *           The number of fixable vulnerabilities associated with this resource.
     *     @type int|string $total_count
     *           The total number of vulnerabilities associated with this resource.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Devtools\Containeranalysis\V1\Containeranalysis::initOnce();
        parent::__construct($data);
    }

    /**
     * The affected resource.
     *
     * Generated from protobuf field <code>string resource_uri = 1;</code>
     * @return string
     */
    public function getResourceUri()
    {
        return $this->resource_uri;
    }

    /**
     * The affected resource.
     *
     * Generated from protobuf field <code>string resource_uri = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setResourceUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->resource_uri = $var;

        return $this;
    }

    /**
     * The severity for this count. SEVERITY_UNSPECIFIED indicates total across
     * all severities.
     *
     * Generated from protobuf field <code>.grafeas.v1.Severity severity = 2;</code>
     * @return int
     */
    public function getSeverity()
    {
        return $this->severity;
    }

    /**
     * The severity for this count. SEVERITY_UNSPECIFIED indicates total across
     * all severities.
     *
     * Generated from protobuf field <code>.grafeas.v1.Severity severity = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setSeverity($var)
    {
        GPBUtil::checkEnum($var, \Grafeas\V1\Severity::class);
        $this->severity = $var;

        return $this;
    }

    /**
     * The number of fixable vulnerabilities associated with this resource.
     *
     * Generated from protobuf field <code>int64 fixable_count = 3;</code>
     * @return int|string
     */
    public function getFixableCount()
    {
        return $this->fixable_count;
    }

    /**
     * The number of fixable vulnerabilities associated with this resource.
     *
     * Generated from protobuf field <code>int64 fixable_count = 3;</code>
     * @param int|string $var
     * @return $this
     */
    public function setFixableCount($var)
    {
        GPBUtil::checkInt64($var);
        $this->fixable_count = $var;

        return $this;
    }

    /**
     * The total number of vulnerabilities associated with this resource.
     *
     * Generated from protobuf field <code>int64 total_count = 4;</code>
     * @return int|string
     */
    public function getTotalCount()
    {
        return $this->total_count;
    }

    /**
     * The total number of vulnerabilities associated with this resource.
     *
     * Generated from protobuf field <code>int64 total_count = 4;</code>
     * @param int|string $var
     * @return $this
     */
    public function setTotalCount($var)
    {
        GPBUtil::checkInt64($var);
        $this->total_count = $var;

        return $this;
    }

}


