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

/**
 * Statistics for a StoredInfoType.
 *
 * Generated from protobuf message <code>google.privacy.dlp.v2.StoredInfoTypeStats</code>
 */
class StoredInfoTypeStats extends \Google\Protobuf\Internal\Message
{
    protected $type;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Dlp\V2\LargeCustomDictionaryStats $large_custom_dictionary
     *           StoredInfoType where findings are defined by a dictionary of phrases.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce();
        parent::__construct($data);
    }

    /**
     * StoredInfoType where findings are defined by a dictionary of phrases.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2.LargeCustomDictionaryStats large_custom_dictionary = 1;</code>
     * @return \Google\Cloud\Dlp\V2\LargeCustomDictionaryStats
     */
    public function getLargeCustomDictionary()
    {
        return $this->readOneof(1);
    }

    /**
     * StoredInfoType where findings are defined by a dictionary of phrases.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2.LargeCustomDictionaryStats large_custom_dictionary = 1;</code>
     * @param \Google\Cloud\Dlp\V2\LargeCustomDictionaryStats $var
     * @return $this
     */
    public function setLargeCustomDictionary($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\LargeCustomDictionaryStats::class);
        $this->writeOneof(1, $var);

        return $this;
    }

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

}

