Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatchRule

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/contactcenterinsights_v1/classes.rb,
lib/google/apis/contactcenterinsights_v1/representations.rb,
lib/google/apis/contactcenterinsights_v1/representations.rb

Overview

The data for a phrase match rule.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1PhraseMatchRule

Returns a new instance of GoogleCloudContactcenterinsightsV1PhraseMatchRule.



2530
2531
2532
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 2530

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#configGoogle::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatchRuleConfig

Configuration information of a phrase match rule. Corresponds to the JSON property config



2516
2517
2518
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 2516

def config
  @config
end

#negatedBoolean Also known as: negated?

Specifies whether the phrase must be missing from the transcript segment or present in the transcript segment. Corresponds to the JSON property negated

Returns:

  • (Boolean)


2522
2523
2524
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 2522

def negated
  @negated
end

#queryString

Required. The phrase to be matched. Corresponds to the JSON property query

Returns:

  • (String)


2528
2529
2530
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 2528

def query
  @query
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2535
2536
2537
2538
2539
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 2535

def update!(**args)
  @config = args[:config] if args.key?(:config)
  @negated = args[:negated] if args.key?(:negated)
  @query = args[:query] if args.key?(:query)
end