Google Cloud Contact Center Insights V1 Client - Class PhraseMatchRule (1.7.1)

Reference documentation and code samples for the Google Cloud Contact Center Insights V1 Client class PhraseMatchRule.

The data for a phrase match rule.

Generated from protobuf message google.cloud.contactcenterinsights.v1.PhraseMatchRule

Namespace

Google \ Cloud \ ContactCenterInsights \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ query string

Required. The phrase to be matched.

↳ negated bool

Specifies whether the phrase must be missing from the transcript segment or present in the transcript segment.

↳ config Google\Cloud\ContactCenterInsights\V1\PhraseMatchRuleConfig

Provides additional information about the rule that specifies how to apply the rule.

getQuery

Required. The phrase to be matched.

Returns
TypeDescription
string

setQuery

Required. The phrase to be matched.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNegated

Specifies whether the phrase must be missing from the transcript segment or present in the transcript segment.

Returns
TypeDescription
bool

setNegated

Specifies whether the phrase must be missing from the transcript segment or present in the transcript segment.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getConfig

Provides additional information about the rule that specifies how to apply the rule.

Returns
TypeDescription
Google\Cloud\ContactCenterInsights\V1\PhraseMatchRuleConfig|null

hasConfig

clearConfig

setConfig

Provides additional information about the rule that specifies how to apply the rule.

Parameter
NameDescription
var Google\Cloud\ContactCenterInsights\V1\PhraseMatchRuleConfig
Returns
TypeDescription
$this