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

namespace Google\Cloud\Dialogflow\V2;

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

/**
 * Represents the parameters of human assist query.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.AssistQueryParameters</code>
 */
class AssistQueryParameters extends \Google\Protobuf\Internal\Message
{
    /**
     * Key-value filters on the metadata of documents returned by article
     * suggestion. If specified, article suggestion only returns suggested
     * documents that match all filters in their
     * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
     * values for a metadata key should be concatenated by comma. For example,
     * filters to match all documents that have 'US' or 'CA' in their market
     * metadata values and 'agent' in their user metadata values will be
     * ```
     * documents_metadata_filters {
     *   key: "market"
     *   value: "US,CA"
     * }
     * documents_metadata_filters {
     *   key: "user"
     *   value: "agent"
     * }
     * ```
     *
     * Generated from protobuf field <code>map<string, string> documents_metadata_filters = 1;</code>
     */
    private $documents_metadata_filters;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array|\Google\Protobuf\Internal\MapField $documents_metadata_filters
     *           Key-value filters on the metadata of documents returned by article
     *           suggestion. If specified, article suggestion only returns suggested
     *           documents that match all filters in their
     *           [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
     *           values for a metadata key should be concatenated by comma. For example,
     *           filters to match all documents that have 'US' or 'CA' in their market
     *           metadata values and 'agent' in their user metadata values will be
     *           ```
     *           documents_metadata_filters {
     *             key: "market"
     *             value: "US,CA"
     *           }
     *           documents_metadata_filters {
     *             key: "user"
     *             value: "agent"
     *           }
     *           ```
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\Participant::initOnce();
        parent::__construct($data);
    }

    /**
     * Key-value filters on the metadata of documents returned by article
     * suggestion. If specified, article suggestion only returns suggested
     * documents that match all filters in their
     * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
     * values for a metadata key should be concatenated by comma. For example,
     * filters to match all documents that have 'US' or 'CA' in their market
     * metadata values and 'agent' in their user metadata values will be
     * ```
     * documents_metadata_filters {
     *   key: "market"
     *   value: "US,CA"
     * }
     * documents_metadata_filters {
     *   key: "user"
     *   value: "agent"
     * }
     * ```
     *
     * Generated from protobuf field <code>map<string, string> documents_metadata_filters = 1;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getDocumentsMetadataFilters()
    {
        return $this->documents_metadata_filters;
    }

    /**
     * Key-value filters on the metadata of documents returned by article
     * suggestion. If specified, article suggestion only returns suggested
     * documents that match all filters in their
     * [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple
     * values for a metadata key should be concatenated by comma. For example,
     * filters to match all documents that have 'US' or 'CA' in their market
     * metadata values and 'agent' in their user metadata values will be
     * ```
     * documents_metadata_filters {
     *   key: "market"
     *   value: "US,CA"
     * }
     * documents_metadata_filters {
     *   key: "user"
     *   value: "agent"
     * }
     * ```
     *
     * Generated from protobuf field <code>map<string, string> documents_metadata_filters = 1;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setDocumentsMetadataFilters($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
        $this->documents_metadata_filters = $arr;

        return $this;
    }

}

