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

namespace Google\Cloud\Dlp\V2beta1;

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

/**
 * Privacy metric to compute for reidentification risk analysis.
 *
 * Generated from protobuf message <code>google.privacy.dlp.v2beta1.PrivacyMetric</code>
 */
class PrivacyMetric extends \Google\Protobuf\Internal\Message
{
    protected $type;

    public function __construct() {
        \GPBMetadata\Google\Privacy\Dlp\V2Beta1\Dlp::initOnce();
        parent::__construct();
    }

    /**
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.PrivacyMetric.NumericalStatsConfig numerical_stats_config = 1;</code>
     * @return \Google\Cloud\Dlp\V2beta1\PrivacyMetric_NumericalStatsConfig
     */
    public function getNumericalStatsConfig()
    {
        return $this->readOneof(1);
    }

    /**
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.PrivacyMetric.NumericalStatsConfig numerical_stats_config = 1;</code>
     * @param \Google\Cloud\Dlp\V2beta1\PrivacyMetric_NumericalStatsConfig $var
     * @return $this
     */
    public function setNumericalStatsConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2beta1\PrivacyMetric_NumericalStatsConfig::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.PrivacyMetric.CategoricalStatsConfig categorical_stats_config = 2;</code>
     * @return \Google\Cloud\Dlp\V2beta1\PrivacyMetric_CategoricalStatsConfig
     */
    public function getCategoricalStatsConfig()
    {
        return $this->readOneof(2);
    }

    /**
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.PrivacyMetric.CategoricalStatsConfig categorical_stats_config = 2;</code>
     * @param \Google\Cloud\Dlp\V2beta1\PrivacyMetric_CategoricalStatsConfig $var
     * @return $this
     */
    public function setCategoricalStatsConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2beta1\PrivacyMetric_CategoricalStatsConfig::class);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.PrivacyMetric.KAnonymityConfig k_anonymity_config = 3;</code>
     * @return \Google\Cloud\Dlp\V2beta1\PrivacyMetric_KAnonymityConfig
     */
    public function getKAnonymityConfig()
    {
        return $this->readOneof(3);
    }

    /**
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.PrivacyMetric.KAnonymityConfig k_anonymity_config = 3;</code>
     * @param \Google\Cloud\Dlp\V2beta1\PrivacyMetric_KAnonymityConfig $var
     * @return $this
     */
    public function setKAnonymityConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2beta1\PrivacyMetric_KAnonymityConfig::class);
        $this->writeOneof(3, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.PrivacyMetric.LDiversityConfig l_diversity_config = 4;</code>
     * @return \Google\Cloud\Dlp\V2beta1\PrivacyMetric_LDiversityConfig
     */
    public function getLDiversityConfig()
    {
        return $this->readOneof(4);
    }

    /**
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.PrivacyMetric.LDiversityConfig l_diversity_config = 4;</code>
     * @param \Google\Cloud\Dlp\V2beta1\PrivacyMetric_LDiversityConfig $var
     * @return $this
     */
    public function setLDiversityConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2beta1\PrivacyMetric_LDiversityConfig::class);
        $this->writeOneof(4, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getType()
    {
        return $this->whichOneof("type");
    }

}

