<?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 search for potentially sensitive info in a list of items
 * and replace it with a default or provided content.
 *
 * Generated from protobuf message <code>google.privacy.dlp.v2beta1.RedactContentRequest</code>
 */
class RedactContentRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Configuration for the inspector.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 1;</code>
     */
    private $inspect_config = null;
    /**
     * The list of items to inspect. Up to 100 are allowed per request.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 2;</code>
     */
    private $items;
    /**
     * The strings to replace findings text findings with. Must specify at least
     * one of these or one ImageRedactionConfig if redacting images.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig replace_configs = 3;</code>
     */
    private $replace_configs;
    /**
     * The configuration for specifying what content to redact from images.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig image_redaction_configs = 4;</code>
     */
    private $image_redaction_configs;

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

    /**
     * Configuration for the inspector.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 1;</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 = 1;</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.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 2;</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.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 2;</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;
    }

    /**
     * The strings to replace findings text findings with. Must specify at least
     * one of these or one ImageRedactionConfig if redacting images.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig replace_configs = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getReplaceConfigs()
    {
        return $this->replace_configs;
    }

    /**
     * The strings to replace findings text findings with. Must specify at least
     * one of these or one ImageRedactionConfig if redacting images.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig replace_configs = 3;</code>
     * @param \Google\Cloud\Dlp\V2beta1\RedactContentRequest_ReplaceConfig[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setReplaceConfigs($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2beta1\RedactContentRequest_ReplaceConfig::class);
        $this->replace_configs = $arr;

        return $this;
    }

    /**
     * The configuration for specifying what content to redact from images.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig image_redaction_configs = 4;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getImageRedactionConfigs()
    {
        return $this->image_redaction_configs;
    }

    /**
     * The configuration for specifying what content to redact from images.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig image_redaction_configs = 4;</code>
     * @param \Google\Cloud\Dlp\V2beta1\RedactContentRequest_ImageRedactionConfig[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setImageRedactionConfigs($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2beta1\RedactContentRequest_ImageRedactionConfig::class);
        $this->image_redaction_configs = $arr;

        return $this;
    }

}

