<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/privacy/dlp/v2/storage.proto

namespace Google\Cloud\Dlp\V2;

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

/**
 * Score is calculated from of all elements in the data profile.
 * A higher level means the data is more sensitive.
 *
 * Generated from protobuf message <code>google.privacy.dlp.v2.SensitivityScore</code>
 */
class SensitivityScore extends \Google\Protobuf\Internal\Message
{
    /**
     * The sensitivity score applied to the resource.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel score = 1;</code>
     */
    protected $score = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $score
     *           The sensitivity score applied to the resource.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce();
        parent::__construct($data);
    }

    /**
     * The sensitivity score applied to the resource.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel score = 1;</code>
     * @return int
     */
    public function getScore()
    {
        return $this->score;
    }

    /**
     * The sensitivity score applied to the resource.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel score = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setScore($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\SensitivityScore\SensitivityScoreLevel::class);
        $this->score = $var;

        return $this;
    }

}

