<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/dialogflow/v2/document.proto

namespace Google\Cloud\Dialogflow\V2;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Response message for [Documents.ImportDocuments][google.cloud.dialogflow.v2.Documents.ImportDocuments].
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.ImportDocumentsResponse</code>
 */
class ImportDocumentsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Includes details about skipped documents or any other warnings.
     *
     * Generated from protobuf field <code>repeated .google.rpc.Status warnings = 1;</code>
     */
    private $warnings;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $warnings
     *           Includes details about skipped documents or any other warnings.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\Document::initOnce();
        parent::__construct($data);
    }

    /**
     * Includes details about skipped documents or any other warnings.
     *
     * Generated from protobuf field <code>repeated .google.rpc.Status warnings = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getWarnings()
    {
        return $this->warnings;
    }

    /**
     * Includes details about skipped documents or any other warnings.
     *
     * Generated from protobuf field <code>repeated .google.rpc.Status warnings = 1;</code>
     * @param array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setWarnings($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class);
        $this->warnings = $arr;

        return $this;
    }

}

