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

/**
 * 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.v2.RedactImageRequest</code>
 */
class RedactImageRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * The parent resource name, for example projects/my-project-id.
     *
     * Generated from protobuf field <code>string parent = 1;</code>
     */
    private $parent = '';
    /**
     * Configuration for the inspector.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2.InspectConfig inspect_config = 2;</code>
     */
    private $inspect_config = null;
    /**
     * The configuration for specifying what content to redact from images.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig image_redaction_configs = 5;</code>
     */
    private $image_redaction_configs;
    /**
     * The content must be PNG, JPEG, SVG or BMP.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2.ByteContentItem byte_item = 7;</code>
     */
    private $byte_item = null;

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

    /**
     * The parent resource name, for example projects/my-project-id.
     *
     * Generated from protobuf field <code>string parent = 1;</code>
     * @return string
     */
    public function getParent()
    {
        return $this->parent;
    }

    /**
     * The parent resource name, for example projects/my-project-id.
     *
     * Generated from protobuf field <code>string parent = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setParent($var)
    {
        GPBUtil::checkString($var, True);
        $this->parent = $var;

        return $this;
    }

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

    /**
     * Configuration for the inspector.
     *
     * 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;
    }

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

        return $this;
    }

    /**
     * The content must be PNG, JPEG, SVG or BMP.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2.ByteContentItem byte_item = 7;</code>
     * @return \Google\Cloud\Dlp\V2\ByteContentItem
     */
    public function getByteItem()
    {
        return $this->byte_item;
    }

    /**
     * The content must be PNG, JPEG, SVG or BMP.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2.ByteContentItem byte_item = 7;</code>
     * @param \Google\Cloud\Dlp\V2\ByteContentItem $var
     * @return $this
     */
    public function setByteItem($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ByteContentItem::class);
        $this->byte_item = $var;

        return $this;
    }

}

