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

namespace Google\Cloud\Ces\V1\OmnichannelIntegrationConfig;

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

/**
 * Configs of subscribers.
 *
 * Generated from protobuf message <code>google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig</code>
 */
class SubscriberConfig extends \Google\Protobuf\Internal\Message
{
    protected $subscriber_config;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Ces\V1\OmnichannelIntegrationConfig\CesAppConfig $ces_app_config
     *           Ces app config.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Ces\V1\Omnichannel::initOnce();
        parent::__construct($data);
    }

    /**
     * Ces app config.
     *
     * Generated from protobuf field <code>.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig ces_app_config = 1;</code>
     * @return \Google\Cloud\Ces\V1\OmnichannelIntegrationConfig\CesAppConfig|null
     */
    public function getCesAppConfig()
    {
        return $this->readOneof(1);
    }

    public function hasCesAppConfig()
    {
        return $this->hasOneof(1);
    }

    /**
     * Ces app config.
     *
     * Generated from protobuf field <code>.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig ces_app_config = 1;</code>
     * @param \Google\Cloud\Ces\V1\OmnichannelIntegrationConfig\CesAppConfig $var
     * @return $this
     */
    public function setCesAppConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Ces\V1\OmnichannelIntegrationConfig\CesAppConfig::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getSubscriberConfig()
    {
        return $this->whichOneof("subscriber_config");
    }

}

