<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/ces/v1/omnichannel.proto

namespace Google\Cloud\Ces\V1;

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

/**
 * OmnichannelIntegrationConfig contains all App integration configs.
 *
 * Generated from protobuf message <code>google.cloud.ces.v1.OmnichannelIntegrationConfig</code>
 */
class OmnichannelIntegrationConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. Various of configuration for handling App events.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> channel_configs = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $channel_configs;
    /**
     * Optional. Various of subscribers configs.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> subscriber_configs = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $subscriber_configs;
    /**
     * Optional. The key of routing_configs is a key of `app_configs`, value is a
     * `RoutingConfig`, which contains subscriber's key.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> routing_configs = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $routing_configs;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array|\Google\Protobuf\Internal\MapField $channel_configs
     *           Optional. Various of configuration for handling App events.
     *     @type array|\Google\Protobuf\Internal\MapField $subscriber_configs
     *           Optional. Various of subscribers configs.
     *     @type array|\Google\Protobuf\Internal\MapField $routing_configs
     *           Optional. The key of routing_configs is a key of `app_configs`, value is a
     *           `RoutingConfig`, which contains subscriber's key.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Ces\V1\Omnichannel::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. Various of configuration for handling App events.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> channel_configs = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getChannelConfigs()
    {
        return $this->channel_configs;
    }

    /**
     * Optional. Various of configuration for handling App events.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> channel_configs = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setChannelConfigs($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Ces\V1\OmnichannelIntegrationConfig\ChannelConfig::class);
        $this->channel_configs = $arr;

        return $this;
    }

    /**
     * Optional. Various of subscribers configs.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> subscriber_configs = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getSubscriberConfigs()
    {
        return $this->subscriber_configs;
    }

    /**
     * Optional. Various of subscribers configs.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> subscriber_configs = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setSubscriberConfigs($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Ces\V1\OmnichannelIntegrationConfig\SubscriberConfig::class);
        $this->subscriber_configs = $arr;

        return $this;
    }

    /**
     * Optional. The key of routing_configs is a key of `app_configs`, value is a
     * `RoutingConfig`, which contains subscriber's key.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> routing_configs = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getRoutingConfigs()
    {
        return $this->routing_configs;
    }

    /**
     * Optional. The key of routing_configs is a key of `app_configs`, value is a
     * `RoutingConfig`, which contains subscriber's key.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> routing_configs = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setRoutingConfigs($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Ces\V1\OmnichannelIntegrationConfig\RoutingConfig::class);
        $this->routing_configs = $arr;

        return $this;
    }

}

