<?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;

/**
 * Result of the categorical stats computation.
 *
 * Generated from protobuf message <code>google.privacy.dlp.v2beta1.RiskAnalysisOperationResult.CategoricalStatsResult</code>
 */
class RiskAnalysisOperationResult_CategoricalStatsResult extends \Google\Protobuf\Internal\Message
{
    /**
     * Histogram of value frequencies in the column.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2beta1.RiskAnalysisOperationResult.CategoricalStatsResult.CategoricalStatsHistogramBucket value_frequency_histogram_buckets = 5;</code>
     */
    private $value_frequency_histogram_buckets;

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

    /**
     * Histogram of value frequencies in the column.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2beta1.RiskAnalysisOperationResult.CategoricalStatsResult.CategoricalStatsHistogramBucket value_frequency_histogram_buckets = 5;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getValueFrequencyHistogramBuckets()
    {
        return $this->value_frequency_histogram_buckets;
    }

    /**
     * Histogram of value frequencies in the column.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2beta1.RiskAnalysisOperationResult.CategoricalStatsResult.CategoricalStatsHistogramBucket value_frequency_histogram_buckets = 5;</code>
     * @param \Google\Cloud\Dlp\V2beta1\RiskAnalysisOperationResult_CategoricalStatsResult_CategoricalStatsHistogramBucket[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setValueFrequencyHistogramBuckets($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2beta1\RiskAnalysisOperationResult_CategoricalStatsResult_CategoricalStatsHistogramBucket::class);
        $this->value_frequency_histogram_buckets = $arr;

        return $this;
    }

}

