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

/**
 * Snapshot of the configurations used to generate the profile.
 *
 * Generated from protobuf message <code>google.privacy.dlp.v2.DataProfileConfigSnapshot</code>
 */
class DataProfileConfigSnapshot extends \Google\Protobuf\Internal\Message
{
    /**
     * A copy of the inspection config used to generate this profile. This
     * is a copy of the inspect_template specified in `DataProfileJobConfig`.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2.InspectConfig inspect_config = 2;</code>
     */
    private $inspect_config = null;
    /**
     * A copy of the configuration used to generate this profile.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3;</code>
     */
    private $data_profile_job = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Dlp\V2\InspectConfig $inspect_config
     *           A copy of the inspection config used to generate this profile. This
     *           is a copy of the inspect_template specified in `DataProfileJobConfig`.
     *     @type \Google\Cloud\Dlp\V2\DataProfileJobConfig $data_profile_job
     *           A copy of the configuration used to generate this profile.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce();
        parent::__construct($data);
    }

    /**
     * A copy of the inspection config used to generate this profile. This
     * is a copy of the inspect_template specified in `DataProfileJobConfig`.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2.InspectConfig inspect_config = 2;</code>
     * @return \Google\Cloud\Dlp\V2\InspectConfig|null
     */
    public function getInspectConfig()
    {
        return $this->inspect_config;
    }

    public function hasInspectConfig()
    {
        return isset($this->inspect_config);
    }

    public function clearInspectConfig()
    {
        unset($this->inspect_config);
    }

    /**
     * A copy of the inspection config used to generate this profile. This
     * is a copy of the inspect_template specified in `DataProfileJobConfig`.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2.InspectConfig inspect_config = 2;</code>
     * @param \Google\Cloud\Dlp\V2\InspectConfig $var
     * @return $this
     */
    public function setInspectConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectConfig::class);
        $this->inspect_config = $var;

        return $this;
    }

    /**
     * A copy of the configuration used to generate this profile.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3;</code>
     * @return \Google\Cloud\Dlp\V2\DataProfileJobConfig|null
     */
    public function getDataProfileJob()
    {
        return $this->data_profile_job;
    }

    public function hasDataProfileJob()
    {
        return isset($this->data_profile_job);
    }

    public function clearDataProfileJob()
    {
        unset($this->data_profile_job);
    }

    /**
     * A copy of the configuration used to generate this profile.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3;</code>
     * @param \Google\Cloud\Dlp\V2\DataProfileJobConfig $var
     * @return $this
     */
    public function setDataProfileJob($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileJobConfig::class);
        $this->data_profile_job = $var;

        return $this;
    }

}

