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

/**
 * Configuration for a StoredInfoType.
 *
 * Generated from protobuf message <code>google.privacy.dlp.v2.StoredInfoTypeConfig</code>
 */
class StoredInfoTypeConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Display name of the StoredInfoType (max 256 characters).
     *
     * Generated from protobuf field <code>string display_name = 1;</code>
     */
    private $display_name = '';
    /**
     * Description of the StoredInfoType (max 256 characters).
     *
     * Generated from protobuf field <code>string description = 2;</code>
     */
    private $description = '';
    protected $type;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $display_name
     *           Display name of the StoredInfoType (max 256 characters).
     *     @type string $description
     *           Description of the StoredInfoType (max 256 characters).
     *     @type \Google\Cloud\Dlp\V2\LargeCustomDictionaryConfig $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);
    }

    /**
     * Display name of the StoredInfoType (max 256 characters).
     *
     * Generated from protobuf field <code>string display_name = 1;</code>
     * @return string
     */
    public function getDisplayName()
    {
        return $this->display_name;
    }

    /**
     * Display name of the StoredInfoType (max 256 characters).
     *
     * Generated from protobuf field <code>string display_name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setDisplayName($var)
    {
        GPBUtil::checkString($var, True);
        $this->display_name = $var;

        return $this;
    }

    /**
     * Description of the StoredInfoType (max 256 characters).
     *
     * Generated from protobuf field <code>string description = 2;</code>
     * @return string
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * Description of the StoredInfoType (max 256 characters).
     *
     * Generated from protobuf field <code>string description = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setDescription($var)
    {
        GPBUtil::checkString($var, True);
        $this->description = $var;

        return $this;
    }

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

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

        return $this;
    }

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

}

