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

/**
 * Request to de-identify a list of items.
 *
 * Generated from protobuf message <code>google.privacy.dlp.v2beta1.DeidentifyContentRequest</code>
 */
class DeidentifyContentRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Configuration for the de-identification of the list of content items.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.DeidentifyConfig deidentify_config = 1;</code>
     */
    private $deidentify_config = null;
    /**
     * Configuration for the inspector.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 2;</code>
     */
    private $inspect_config = null;
    /**
     * The list of items to inspect. Up to 100 are allowed per request.
     * All items will be treated as text/&#42;.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 3;</code>
     */
    private $items;

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

    /**
     * Configuration for the de-identification of the list of content items.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.DeidentifyConfig deidentify_config = 1;</code>
     * @return \Google\Cloud\Dlp\V2beta1\DeidentifyConfig
     */
    public function getDeidentifyConfig()
    {
        return $this->deidentify_config;
    }

    /**
     * Configuration for the de-identification of the list of content items.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.DeidentifyConfig deidentify_config = 1;</code>
     * @param \Google\Cloud\Dlp\V2beta1\DeidentifyConfig $var
     * @return $this
     */
    public function setDeidentifyConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2beta1\DeidentifyConfig::class);
        $this->deidentify_config = $var;

        return $this;
    }

    /**
     * Configuration for the inspector.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 2;</code>
     * @return \Google\Cloud\Dlp\V2beta1\InspectConfig
     */
    public function getInspectConfig()
    {
        return $this->inspect_config;
    }

    /**
     * Configuration for the inspector.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 2;</code>
     * @param \Google\Cloud\Dlp\V2beta1\InspectConfig $var
     * @return $this
     */
    public function setInspectConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2beta1\InspectConfig::class);
        $this->inspect_config = $var;

        return $this;
    }

    /**
     * The list of items to inspect. Up to 100 are allowed per request.
     * All items will be treated as text/&#42;.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getItems()
    {
        return $this->items;
    }

    /**
     * The list of items to inspect. Up to 100 are allowed per request.
     * All items will be treated as text/&#42;.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 3;</code>
     * @param \Google\Cloud\Dlp\V2beta1\ContentItem[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setItems($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2beta1\ContentItem::class);
        $this->items = $arr;

        return $this;
    }

}

