@@ -105,42 +105,6 @@ service Conversations {
105105 option (google.api.method_signature ) = "name" ;
106106 }
107107
108- // Creates a call matcher that links incoming SIP calls to the specified
109- // conversation if they fulfill specified criteria.
110- rpc CreateCallMatcher (CreateCallMatcherRequest ) returns (CallMatcher ) {
111- option (google.api.http ) = {
112- post : "/v2/{parent=projects/*/conversations/*}/callMatchers"
113- body : "call_matcher"
114- additional_bindings {
115- post : "/v2/{parent=projects/*/locations/*/conversations/*}/callMatchers"
116- body : "*"
117- }
118- };
119- option (google.api.method_signature ) = "parent,call_matcher" ;
120- }
121-
122- // Returns the list of all call matchers in the specified conversation.
123- rpc ListCallMatchers (ListCallMatchersRequest ) returns (ListCallMatchersResponse ) {
124- option (google.api.http ) = {
125- get : "/v2/{parent=projects/*/conversations/*}/callMatchers"
126- additional_bindings {
127- get : "/v2/{parent=projects/*/locations/*/conversations/*}/callMatchers"
128- }
129- };
130- option (google.api.method_signature ) = "parent" ;
131- }
132-
133- // Requests deletion of a call matcher.
134- rpc DeleteCallMatcher (DeleteCallMatcherRequest ) returns (google.protobuf.Empty ) {
135- option (google.api.http ) = {
136- delete : "/v2/{name=projects/*/conversations/*/callMatchers/*}"
137- additional_bindings {
138- delete : "/v2/{name=projects/*/locations/*/conversations/*/callMatchers/*}"
139- }
140- };
141- option (google.api.method_signature ) = "name" ;
142- }
143-
144108 // Lists messages that belong to a given conversation.
145109 // `messages` are ordered by `create_time` in descending order. To fetch
146110 // updates without duplication, send request with filter
@@ -242,72 +206,6 @@ message Conversation {
242206 ConversationStage conversation_stage = 7 ;
243207}
244208
245- // Represents a call matcher that describes criteria for matching incoming SIP
246- // calls to a conversation. When Dialogflow get a SIP call from a third-party
247- // carrier, Dialogflow matches the call to an existing conversation by either:
248- //
249- // * Extracting the conversation id from the
250- // [Call-Info header](https://tools.ietf.org/html/rfc3261#section-20.9), e.g.
251- // `Call-Info:
252- // <http://dialogflow.googleapis.com/v2/projects/111/conversations/222>
253- // ;purpose=Goog-ContactCenter-Conversation`.
254- // * Or, if that doesn't work, matching incoming [SIP
255- // headers](https://tools.ietf.org/html/rfc3261#section-7.3)
256- // against any [CallMatcher][google.cloud.dialogflow.v2.CallMatcher] for the conversation.
257- //
258- // If an incoming SIP call without valid `Call-Info` header matches to zero or
259- // multiple conversations with `CallMatcher`, we reject it.
260- //
261- // A call matcher contains equality conditions for SIP headers that all have
262- // to be fulfilled in order for a SIP call to match.
263- //
264- // The matched SIP headers consist of well-known headers (`To`, `From`,
265- // `Call-ID`) and custom headers. A [CallMatcher][google.cloud.dialogflow.v2.CallMatcher] is only valid if it
266- // specifies:
267- //
268- // * At least 1 custom header,
269- // * or at least 2 well-known headers.
270- message CallMatcher {
271- option (google.api.resource ) = {
272- type : "dialogflow.googleapis.com/CallMatcher"
273- pattern : "projects/{project}/conversations/{conversation}/callMatchers/{call_matcher}"
274- pattern : "projects/{project}/locations/{location}/conversations/{conversation}/callMatchers/{call_matcher}"
275- };
276-
277- // Custom SIP headers. See the [description of headers in
278- // the RFC](https://tools.ietf.org/html/rfc3261#section-7.3).
279- message CustomHeaders {
280- // Cisco's proprietary `Cisco-Guid` header.
281- string cisco_guid = 1 ;
282- }
283-
284- // Output only. The unique identifier of this call matcher.
285- // Format: `projects/<Project ID>/locations/<Location
286- // ID>/conversations/<Conversation ID>/callMatchers/<Call Matcher ID>`.
287- string name = 1 [(google.api.field_behavior ) = OUTPUT_ONLY ];
288-
289- // Value of the [`To`
290- // header](https://tools.ietf.org/html/rfc3261#section-8.1.1.2) to match. If
291- // empty or unspecified, we don't match to the
292- // [`To` header](https://tools.ietf.org/html/rfc3261#section-8.1.1.2).
293- string to_header = 2 ;
294-
295- // Value of the [`From`
296- // header](https://tools.ietf.org/html/rfc3261#section-8.1.1.3) to match. If
297- // empty or unspecified, we don't match to the
298- // [`From` header](https://tools.ietf.org/html/rfc3261#section-8.1.1.3).
299- string from_header = 3 ;
300-
301- // Value of the [`Call-ID`
302- // header](https://tools.ietf.org/html/rfc3261#section-8.1.1.4) to match. If
303- // empty or unspecified, we don't match to the
304- // [`Call-ID` header](https://tools.ietf.org/html/rfc3261#section-8.1.1.4).
305- string call_id_header = 4 ;
306-
307- // Custom SIP headers that must match.
308- CustomHeaders custom_headers = 5 ;
309- }
310-
311209// The request message for [Conversations.CreateConversation][google.cloud.dialogflow.v2.Conversations.CreateConversation].
312210message CreateConversationRequest {
313211 // Required. Resource identifier of the project creating the conversation.
@@ -410,66 +308,6 @@ message CompleteConversationRequest {
410308 ];
411309}
412310
413- // The request message for [Conversations.CreateCallMatcher][google.cloud.dialogflow.v2.Conversations.CreateCallMatcher].
414- message CreateCallMatcherRequest {
415- // Required. Resource identifier of the conversation adding the call matcher.
416- // Format: `projects/<Project ID>/locations/<Location
417- // ID>/conversations/<Conversation ID>`.
418- string parent = 1 [
419- (google.api.field_behavior ) = REQUIRED ,
420- (google.api.resource_reference ) = {
421- child_type : "dialogflow.googleapis.com/CallMatcher"
422- }
423- ];
424-
425- // Required. The call matcher to create.
426- CallMatcher call_matcher = 2 [(google.api.field_behavior ) = REQUIRED ];
427- }
428-
429- // The request message for [Conversations.ListCallMatchers][google.cloud.dialogflow.v2.Conversations.ListCallMatchers].
430- message ListCallMatchersRequest {
431- // Required. The conversation to list all call matchers from.
432- // Format: `projects/<Project ID>/locations/<Location
433- // ID>/conversations/<Conversation ID>`.
434- string parent = 1 [
435- (google.api.field_behavior ) = REQUIRED ,
436- (google.api.resource_reference ) = {
437- child_type : "dialogflow.googleapis.com/CallMatcher"
438- }
439- ];
440-
441- // Optional. The maximum number of items to return in a single page. By
442- // default 100 and at most 1000.
443- int32 page_size = 2 [(google.api.field_behavior ) = OPTIONAL ];
444-
445- // Optional. The next_page_token value returned from a previous list request.
446- string page_token = 3 [(google.api.field_behavior ) = OPTIONAL ];
447- }
448-
449- // The response message for [Conversations.ListCallMatchers][google.cloud.dialogflow.v2.Conversations.ListCallMatchers].
450- message ListCallMatchersResponse {
451- // The list of call matchers. There is a maximum number of items
452- // returned based on the page_size field in the request.
453- repeated CallMatcher call_matchers = 1 ;
454-
455- // Token to retrieve the next page of results or empty if there are no
456- // more results in the list.
457- string next_page_token = 2 ;
458- }
459-
460- // The request message for [Conversations.DeleteCallMatcher][google.cloud.dialogflow.v2.Conversations.DeleteCallMatcher].
461- message DeleteCallMatcherRequest {
462- // Required. The unique identifier of the [CallMatcher][google.cloud.dialogflow.v2.CallMatcher] to delete.
463- // Format: `projects/<Project ID>/locations/<Location
464- // ID>/conversations/<Conversation ID>/callMatchers/<CallMatcher ID>`.
465- string name = 1 [
466- (google.api.field_behavior ) = REQUIRED ,
467- (google.api.resource_reference ) = {
468- type : "dialogflow.googleapis.com/CallMatcher"
469- }
470- ];
471- }
472-
473311// The request message for [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages].
474312message ListMessagesRequest {
475313 // Required. The name of the conversation to list messages for.
0 commit comments