Skip to content

Commit 8d17d8f

Browse files
Google APIscopybara-github
authored andcommitted
fix!: remove rpc or fields that are unintended to release
fix!: remove StreamingAnalyzeContent, CreateCallMatcher, ListCallMatchers, DeleteCallMatcher rpc from v2/v2beta1 fix!: remove `input_audio` field from AnalyzeContentRequest from v2/v2beta1 fix!: remove proto message CreateCallMatcherRequest, CreateCallMatcherResponse, ListCallMatchersRequest, ListCallMatchersResponse, DeleteCallMatcherRequest, DeleteCallMatcherResponse, CallMatcher, StreamingAnalyzeContentRequest, StreamingAnalyzeContentResponse, AudioInput from v2/v2beta1, TelephonyDtmfEvents, TelephonyDtmf from v2 Committer: @sheimi PiperOrigin-RevId: 363762006
1 parent 2786f64 commit 8d17d8f

5 files changed

Lines changed: 50 additions & 795 deletions

File tree

google/cloud/dialogflow/v2/audio_config.proto

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -337,12 +337,6 @@ message OutputAudioConfig {
337337
SynthesizeSpeechConfig synthesize_speech_config = 3;
338338
}
339339

340-
// A wrapper of repeated TelephonyDtmf digits.
341-
message TelephonyDtmfEvents {
342-
// A sequence of TelephonyDtmf digits.
343-
repeated TelephonyDtmf dtmf_events = 1;
344-
}
345-
346340
// Audio encoding of the output audio format in Text-To-Speech.
347341
enum OutputAudioEncoding {
348342
// Not specified.
@@ -370,58 +364,3 @@ message SpeechToTextConfig {
370364
// [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest] request.
371365
SpeechModelVariant speech_model_variant = 1 [(google.api.field_behavior) = OPTIONAL];
372366
}
373-
374-
// [DTMF](https://en.wikipedia.org/wiki/Dual-tone_multi-frequency_signaling)
375-
// digit in Telephony Gateway.
376-
enum TelephonyDtmf {
377-
// Not specified. This value may be used to indicate an absent digit.
378-
TELEPHONY_DTMF_UNSPECIFIED = 0;
379-
380-
// Number: '1'.
381-
DTMF_ONE = 1;
382-
383-
// Number: '2'.
384-
DTMF_TWO = 2;
385-
386-
// Number: '3'.
387-
DTMF_THREE = 3;
388-
389-
// Number: '4'.
390-
DTMF_FOUR = 4;
391-
392-
// Number: '5'.
393-
DTMF_FIVE = 5;
394-
395-
// Number: '6'.
396-
DTMF_SIX = 6;
397-
398-
// Number: '7'.
399-
DTMF_SEVEN = 7;
400-
401-
// Number: '8'.
402-
DTMF_EIGHT = 8;
403-
404-
// Number: '9'.
405-
DTMF_NINE = 9;
406-
407-
// Number: '0'.
408-
DTMF_ZERO = 10;
409-
410-
// Letter: 'A'.
411-
DTMF_A = 11;
412-
413-
// Letter: 'B'.
414-
DTMF_B = 12;
415-
416-
// Letter: 'C'.
417-
DTMF_C = 13;
418-
419-
// Letter: 'D'.
420-
DTMF_D = 14;
421-
422-
// Asterisk/star: '*'.
423-
DTMF_STAR = 15;
424-
425-
// Pound/diamond/hash/square/gate/octothorpe: '#'.
426-
DTMF_POUND = 16;
427-
}

google/cloud/dialogflow/v2/conversation.proto

Lines changed: 0 additions & 162 deletions
Original file line numberDiff line numberDiff line change
@@ -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].
312210
message 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].
474312
message ListMessagesRequest {
475313
// Required. The name of the conversation to list messages for.

0 commit comments

Comments
 (0)