<?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\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * 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>
     */
    private $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>
     */
    private $estimated_prevalence = 0;

    /**
     * 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.
     * }
     */
    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;
    }

}

