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

namespace Google\Cloud\Dialogflow\V2;

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

/**
 * The response message for [ConversationsService.IngestContextReferences][].
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.IngestContextReferencesResponse</code>
 */
class IngestContextReferencesResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * All context references ingested.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> ingested_context_references = 1;</code>
     */
    private $ingested_context_references;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array|\Google\Protobuf\Internal\MapField $ingested_context_references
     *           All context references ingested.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\Conversation::initOnce();
        parent::__construct($data);
    }

    /**
     * All context references ingested.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> ingested_context_references = 1;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getIngestedContextReferences()
    {
        return $this->ingested_context_references;
    }

    /**
     * All context references ingested.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> ingested_context_references = 1;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setIngestedContextReferences($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\Conversation\ContextReference::class);
        $this->ingested_context_references = $arr;

        return $this;
    }

}

