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

/**
 * Results of inspecting an item.
 *
 * Generated from protobuf message <code>google.privacy.dlp.v2.InspectContentResponse</code>
 */
class InspectContentResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The findings.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2.InspectResult result = 1;</code>
     */
    private $result = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Dlp\V2\InspectResult $result
     *           The findings.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce();
        parent::__construct($data);
    }

    /**
     * The findings.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2.InspectResult result = 1;</code>
     * @return \Google\Cloud\Dlp\V2\InspectResult
     */
    public function getResult()
    {
        return $this->result;
    }

    /**
     * The findings.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2.InspectResult result = 1;</code>
     * @param \Google\Cloud\Dlp\V2\InspectResult $var
     * @return $this
     */
    public function setResult($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectResult::class);
        $this->result = $var;

        return $this;
    }

}

