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

namespace Google\Cloud\ContactCenterInsights\V1;

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

/**
 * Configuration information of a phrase match rule.
 *
 * Generated from protobuf message <code>google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig</code>
 */
class PhraseMatchRuleConfig extends \Google\Protobuf\Internal\Message
{
    protected $config;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\ContactCenterInsights\V1\ExactMatchConfig $exact_match_config
     *           The configuration for the exact match rule.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce();
        parent::__construct($data);
    }

    /**
     * The configuration for the exact match rule.
     *
     * Generated from protobuf field <code>.google.cloud.contactcenterinsights.v1.ExactMatchConfig exact_match_config = 1;</code>
     * @return \Google\Cloud\ContactCenterInsights\V1\ExactMatchConfig|null
     */
    public function getExactMatchConfig()
    {
        return $this->readOneof(1);
    }

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

    /**
     * The configuration for the exact match rule.
     *
     * Generated from protobuf field <code>.google.cloud.contactcenterinsights.v1.ExactMatchConfig exact_match_config = 1;</code>
     * @param \Google\Cloud\ContactCenterInsights\V1\ExactMatchConfig $var
     * @return $this
     */
    public function setExactMatchConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\ExactMatchConfig::class);
        $this->writeOneof(1, $var);

        return $this;
    }

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

}

