<?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;

/**
 * The data for a matched phrase matcher.
 * Represents information identifying a phrase matcher for a given match.
 *
 * Generated from protobuf message <code>google.cloud.contactcenterinsights.v1.PhraseMatchData</code>
 */
class PhraseMatchData extends \Google\Protobuf\Internal\Message
{
    /**
     * The unique identifier (the resource name) of the phrase matcher.
     *
     * Generated from protobuf field <code>string phrase_matcher = 1;</code>
     */
    private $phrase_matcher = '';
    /**
     * The human-readable name of the phrase matcher.
     *
     * Generated from protobuf field <code>string display_name = 2;</code>
     */
    private $display_name = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $phrase_matcher
     *           The unique identifier (the resource name) of the phrase matcher.
     *     @type string $display_name
     *           The human-readable name of the phrase matcher.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce();
        parent::__construct($data);
    }

    /**
     * The unique identifier (the resource name) of the phrase matcher.
     *
     * Generated from protobuf field <code>string phrase_matcher = 1;</code>
     * @return string
     */
    public function getPhraseMatcher()
    {
        return $this->phrase_matcher;
    }

    /**
     * The unique identifier (the resource name) of the phrase matcher.
     *
     * Generated from protobuf field <code>string phrase_matcher = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setPhraseMatcher($var)
    {
        GPBUtil::checkString($var, True);
        $this->phrase_matcher = $var;

        return $this;
    }

    /**
     * The human-readable name of the phrase matcher.
     *
     * Generated from protobuf field <code>string display_name = 2;</code>
     * @return string
     */
    public function getDisplayName()
    {
        return $this->display_name;
    }

    /**
     * The human-readable name of the phrase matcher.
     *
     * Generated from protobuf field <code>string display_name = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setDisplayName($var)
    {
        GPBUtil::checkString($var, True);
        $this->display_name = $var;

        return $this;
    }

}

