<?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\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * The results of an [Action][google.privacy.dlp.v2.Action].
 *
 * Generated from protobuf message <code>google.privacy.dlp.v2.ActionDetails</code>
 */
class ActionDetails extends \Google\Protobuf\Internal\Message
{
    protected $details;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Dlp\V2\DeidentifyDataSourceDetails $deidentify_details
     *           Outcome of a de-identification action.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce();
        parent::__construct($data);
    }

    /**
     * Outcome of a de-identification action.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2.DeidentifyDataSourceDetails deidentify_details = 1;</code>
     * @return \Google\Cloud\Dlp\V2\DeidentifyDataSourceDetails|null
     */
    public function getDeidentifyDetails()
    {
        return $this->readOneof(1);
    }

    public function hasDeidentifyDetails()
    {
        return $this->hasOneof(1);
    }

    /**
     * Outcome of a de-identification action.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2.DeidentifyDataSourceDetails deidentify_details = 1;</code>
     * @param \Google\Cloud\Dlp\V2\DeidentifyDataSourceDetails $var
     * @return $this
     */
    public function setDeidentifyDetails($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyDataSourceDetails::class);
        $this->writeOneof(1, $var);

        return $this;
    }

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

}

