Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1CreateCallMatcherRequest

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

Overview

The request message for Conversations.CreateCallMatcher.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1CreateCallMatcherRequest

Returns a new instance of GoogleCloudDialogflowV2beta1CreateCallMatcherRequest.



8505
8506
8507
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 8505

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

Instance Attribute Details

#call_matcherGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1CallMatcher

Represents a call matcher that describes criteria for matching incoming SIP calls to a conversation. When Dialogflow get a SIP call from a third-party carrier, Dialogflow matches the call to an existing conversation by either: * Extracting the conversation id from the Call-Info header, e.g. Call-Info: ;purpose=Goog-ContactCenter- Conversation. * Or, if that doesn't work, matching incoming SIP headers against any CallMatcher for the conversation. If an incoming SIP call without valid Call-Info header matches to zero or multiple conversations with CallMatcher, we reject it. A call matcher contains equality conditions for SIP headers that all have to be fulfilled in order for a SIP call to match. The matched SIP headers consist of well-known headers (To, From, Call-ID) and custom headers. A CallMatcher is only valid if it specifies: * At least 1 custom header, * or at least 2 well-known headers. Corresponds to the JSON property callMatcher



8503
8504
8505
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 8503

def call_matcher
  @call_matcher
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8510
8511
8512
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 8510

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