<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/privacy/dlp/v2beta1/dlp.proto

namespace Google\Privacy\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.
 *
 * Generated from protobuf message <code>google.privacy.dlp.v2beta1.InspectContentRequest</code>
 */
class InspectContentRequest 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. Items in a single request are
     * considered "related" unless inspect_config.independent_inputs is true.
     * Up to 100 are allowed per request.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 2;</code>
     */
    private $items;

    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\Privacy\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\Privacy\Dlp\V2beta1\InspectConfig $var
     * @return $this
     */
    public function setInspectConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Privacy\Dlp\V2beta1\InspectConfig::class);
        $this->inspect_config = $var;

        return $this;
    }

    /**
     * The list of items to inspect. Items in a single request are
     * considered "related" unless inspect_config.independent_inputs is true.
     * 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. Items in a single request are
     * considered "related" unless inspect_config.independent_inputs is true.
     * Up to 100 are allowed per request.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 2;</code>
     * @param \Google\Privacy\Dlp\V2beta1\ContentItem[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setItems($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Privacy\Dlp\V2beta1\ContentItem::class);
        $this->items = $arr;

        return $this;
    }

}

