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

namespace Google\Cloud\Dlp\V2;

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

/**
 * Infotype details for other infoTypes found within a column.
 *
 * Generated from protobuf message <code>google.privacy.dlp.v2.OtherInfoTypeSummary</code>
 */
class OtherInfoTypeSummary extends \Google\Protobuf\Internal\Message
{
    /**
     * The other infoType.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2.InfoType info_type = 1;</code>
     */
    protected $info_type = null;
    /**
     * Approximate percentage of non-null rows that contained data detected by
     * this infotype.
     *
     * Generated from protobuf field <code>int32 estimated_prevalence = 2;</code>
     */
    protected $estimated_prevalence = 0;
    /**
     * Whether this infoType was excluded from sensitivity and risk analysis due
     * to factors such as low prevalence (subject to change).
     *
     * Generated from protobuf field <code>bool excluded_from_analysis = 3;</code>
     */
    protected $excluded_from_analysis = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Dlp\V2\InfoType $info_type
     *           The other infoType.
     *     @type int $estimated_prevalence
     *           Approximate percentage of non-null rows that contained data detected by
     *           this infotype.
     *     @type bool $excluded_from_analysis
     *           Whether this infoType was excluded from sensitivity and risk analysis due
     *           to factors such as low prevalence (subject to change).
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce();
        parent::__construct($data);
    }

    /**
     * The other infoType.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2.InfoType info_type = 1;</code>
     * @return \Google\Cloud\Dlp\V2\InfoType|null
     */
    public function getInfoType()
    {
        return $this->info_type;
    }

    public function hasInfoType()
    {
        return isset($this->info_type);
    }

    public function clearInfoType()
    {
        unset($this->info_type);
    }

    /**
     * The other infoType.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2.InfoType info_type = 1;</code>
     * @param \Google\Cloud\Dlp\V2\InfoType $var
     * @return $this
     */
    public function setInfoType($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class);
        $this->info_type = $var;

        return $this;
    }

    /**
     * Approximate percentage of non-null rows that contained data detected by
     * this infotype.
     *
     * Generated from protobuf field <code>int32 estimated_prevalence = 2;</code>
     * @return int
     */
    public function getEstimatedPrevalence()
    {
        return $this->estimated_prevalence;
    }

    /**
     * Approximate percentage of non-null rows that contained data detected by
     * this infotype.
     *
     * Generated from protobuf field <code>int32 estimated_prevalence = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setEstimatedPrevalence($var)
    {
        GPBUtil::checkInt32($var);
        $this->estimated_prevalence = $var;

        return $this;
    }

    /**
     * Whether this infoType was excluded from sensitivity and risk analysis due
     * to factors such as low prevalence (subject to change).
     *
     * Generated from protobuf field <code>bool excluded_from_analysis = 3;</code>
     * @return bool
     */
    public function getExcludedFromAnalysis()
    {
        return $this->excluded_from_analysis;
    }

    /**
     * Whether this infoType was excluded from sensitivity and risk analysis due
     * to factors such as low prevalence (subject to change).
     *
     * Generated from protobuf field <code>bool excluded_from_analysis = 3;</code>
     * @param bool $var
     * @return $this
     */
    public function setExcludedFromAnalysis($var)
    {
        GPBUtil::checkBool($var);
        $this->excluded_from_analysis = $var;

        return $this;
    }

}

