Skip to content

Commit cd84730

Browse files
Google APIscopybara-github
authored andcommitted
feat: added support for TelephonyConnectionInfo, country_code and ControlPoint
feat: added support for CONVERSATION_SUMMARIZATION feat: added ConversatioalTrainingAssignments, ConversationalTrainingMembers, ConversationalTrainingModules,ConversationalTrainingTeams API feat: added support for audio_input and speech_model feat: changed enablle_partial_automated_agent_reply to optional docs: clarified wording around filter and document_correctness docs: clarified wording around use_timeout_based_endpointing docs: changed reference link around ConversationStage docs: clarified wording around boost_specs and filter_specs docs: clarified wording around send_time PiperOrigin-RevId: 733074841
1 parent c414002 commit cd84730

13 files changed

Lines changed: 133 additions & 26 deletions

google/cloud/dialogflow/v2/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,6 @@ load(
412412

413413
csharp_proto_library(
414414
name = "dialogflow_csharp_proto",
415-
extra_opts = [],
416415
deps = [":dialogflow_proto"],
417416
)
418417

google/cloud/dialogflow/v2/answer_record.proto

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import "google/cloud/dialogflow/v2/participant.proto";
2424
import "google/protobuf/field_mask.proto";
2525
import "google/protobuf/timestamp.proto";
2626

27-
option cc_enable_arenas = true;
2827
option csharp_namespace = "Google.Cloud.Dialogflow.V2";
2928
option go_package = "cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb";
3029
option java_multiple_files = true;
@@ -134,13 +133,23 @@ message ListAnswerRecordsRequest {
134133
}
135134
];
136135

137-
// Optional. Filters to restrict results to specific answer records.
136+
// Optional. Filters to restrict results to specific answer records. The
137+
// expression has the following syntax:
138138
//
139-
// Marked deprecated as it hasn't been, and isn't currently, supported.
139+
// <field> <operator> <value> [AND <field> <operator> <value>] ...
140+
//
141+
// The following fields and operators are supported:
142+
// * conversation_id with equals(=) operator
143+
//
144+
// Examples:
145+
//
146+
// * `conversation_id=bar` matches answer records in the
147+
// `projects/foo/locations/global/conversations/bar` conversation
148+
// (assuming the parent is `projects/foo/locations/global`).
140149
//
141150
// For more information about filtering, see
142151
// [API Filtering](https://aip.dev/160).
143-
string filter = 2 [deprecated = true, (google.api.field_behavior) = OPTIONAL];
152+
string filter = 2 [(google.api.field_behavior) = OPTIONAL];
144153

145154
// Optional. The maximum number of records to return in a single page.
146155
// The server may return fewer records than this. If unspecified, we use 10.
@@ -328,7 +337,7 @@ message AgentAssistantFeedback {
328337
// * Suggested document says: "Items must be returned/exchanged within 60
329338
// days of the purchase date."
330339
// * Ground truth: "No return or exchange is allowed."
331-
// * [document_correctness]: INCORRECT
340+
// * [document_correctness][google.cloud.dialogflow.v2.AgentAssistantFeedback.document_correctness]: [INCORRECT][google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness.INCORRECT]
332341
DocumentCorrectness document_correctness = 2
333342
[(google.api.field_behavior) = OPTIONAL];
334343

google/cloud/dialogflow/v2/audio_config.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ message SpeechToTextConfig {
320320
// information.
321321
bool enable_word_info = 9;
322322

323-
// Use timeout based endpointing, interpreting endpointer sensitivy as
323+
// Use timeout based endpointing, interpreting endpointer sensitivity as
324324
// seconds of timeout value.
325325
bool use_timeout_based_endpointing = 11;
326326
}

google/cloud/dialogflow/v2/conversation.proto

Lines changed: 72 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ message Conversation {
221221

222222
// Enumeration of the different conversation stages a conversation can be in.
223223
// Reference:
224-
// https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages
224+
// https://cloud.google.com/agent-assist/docs/basics#conversation_stages
225225
enum ConversationStage {
226226
// Unknown. Should never be used after a conversation is successfully
227227
// created.
@@ -236,6 +236,43 @@ message Conversation {
236236
HUMAN_ASSIST_STAGE = 2;
237237
}
238238

239+
// The information about phone calls connected via phone gateway to the
240+
// conversation.
241+
message TelephonyConnectionInfo {
242+
// The SIP headers from the initial SIP INVITE.
243+
message SipHeader {
244+
// Optional. The name of the header.
245+
string name = 1 [(google.api.field_behavior) = OPTIONAL];
246+
247+
// Optional. The value of the header.
248+
string value = 2 [(google.api.field_behavior) = OPTIONAL];
249+
}
250+
251+
// The mime content from the initial SIP INVITE.
252+
message MimeContent {
253+
// Optional. The mime type of the content.
254+
string mime_type = 1 [(google.api.field_behavior) = OPTIONAL];
255+
256+
// Optional. The content payload.
257+
bytes content = 2 [(google.api.field_behavior) = OPTIONAL];
258+
}
259+
260+
// Output only. The number dialed to connect this call in E.164 format.
261+
string dialed_number = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
262+
263+
// Optional. SDP of the call. It's initially the SDP answer to the endpoint,
264+
// but maybe later updated for the purpose of making the link active, etc.
265+
string sdp = 5 [(google.api.field_behavior) = OPTIONAL];
266+
267+
// Output only. The SIP headers from the initial SIP INVITE.
268+
repeated SipHeader sip_headers = 12
269+
[(google.api.field_behavior) = OUTPUT_ONLY];
270+
271+
// Output only. The mime content from the initial SIP INVITE.
272+
repeated MimeContent extra_mime_contents = 13
273+
[(google.api.field_behavior) = OUTPUT_ONLY];
274+
}
275+
239276
// Output only. Identifier. The unique identifier of this conversation.
240277
// Format: `projects/<Project ID>/locations/<Location
241278
// ID>/conversations/<Conversation ID>`.
@@ -290,6 +327,10 @@ message Conversation {
290327
// [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
291328
ConversationStage conversation_stage = 7
292329
[(google.api.field_behavior) = OPTIONAL];
330+
331+
// Output only. The telephony connection information.
332+
TelephonyConnectionInfo telephony_connection_info = 10
333+
[(google.api.field_behavior) = OUTPUT_ONLY];
293334
}
294335

295336
// The request message for
@@ -437,6 +478,9 @@ message ListMessagesResponse {
437478
// Represents a phone number for telephony integration. It allows for connecting
438479
// a particular conversation over telephony.
439480
message ConversationPhoneNumber {
481+
// Output only. Desired country code for the phone number.
482+
int32 country_code = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
483+
440484
// Output only. The phone number to connect to this conversation.
441485
string phone_number = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
442486
}
@@ -723,7 +767,20 @@ message SearchKnowledgeRequest {
723767
// The control points used to define the curve. The curve defined
724768
// through these control points can only be monotonically increasing
725769
// or decreasing(constant values are acceptable).
726-
message ControlPoint {}
770+
message ControlPoint {
771+
// Optional. Can be one of:
772+
// 1. The numerical field value.
773+
// 2. The duration spec for freshness:
774+
// The value must be formatted as an XSD `dayTimeDuration` value
775+
// (a restricted subset of an ISO 8601 duration value). The
776+
// pattern for this is: `[nD][T[nH][nM][nS]]`.
777+
string attribute_value = 1
778+
[(google.api.field_behavior) = OPTIONAL];
779+
780+
// Optional. The value between -1 to 1 by which to boost the score
781+
// if the attribute_value evaluates to the value specified above.
782+
float boost_amount = 2 [(google.api.field_behavior) = OPTIONAL];
783+
}
727784

728785
// Optional. The name of the field whose value will be used to
729786
// determine the boost amount.
@@ -787,7 +844,7 @@ message SearchKnowledgeRequest {
787844
}
788845

789846
// Optional. Condition boost specifications. If a document matches
790-
// multiple conditions in the specifictions, boost scores from these
847+
// multiple conditions in the specifications, boost scores from these
791848
// specifications are all applied and combined in a non-linear way.
792849
// Maximum number of specifications is 20.
793850
repeated ConditionBoostSpec condition_boost_specs = 1
@@ -824,10 +881,19 @@ message SearchKnowledgeRequest {
824881
}
825882

826883
// Optional. Boost specifications for data stores.
884+
//
885+
// Maps from datastore name to their boost configuration. Do not specify
886+
// more than one BoostSpecs for each datastore name. If multiple BoostSpecs
887+
// are provided for the same datastore name, the behavior is undefined.
827888
repeated BoostSpecs boost_specs = 1
828889
[(google.api.field_behavior) = OPTIONAL];
829890

830891
// Optional. Filter specification for data store queries.
892+
//
893+
// TMaps from datastore name to the filter expression for that datastore. Do
894+
// not specify more than one FilterSpecs for each datastore name. If
895+
// multiple FilterSpecs are provided for the same datastore name, the
896+
// behavior is undefined.
831897
repeated FilterSpecs filter_specs = 2
832898
[(google.api.field_behavior) = OPTIONAL];
833899
}
@@ -966,5 +1032,7 @@ message SearchKnowledgeAnswer {
9661032
// The name of the answer record.
9671033
// Format: `projects/<Project ID>/locations/<location ID>/answer
9681034
// Records/<Answer Record ID>`
969-
string answer_record = 5;
1035+
string answer_record = 5 [(google.api.resource_reference) = {
1036+
type: "dialogflow.googleapis.com/AnswerRecord"
1037+
}];
9701038
}

google/cloud/dialogflow/v2/conversation_model.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ message ConversationModelEvaluation {
342342
}
343343

344344
// Output only. Human eval template in csv format.
345-
// It tooks real-world conversations provided through input dataset, generates
345+
// It takes real-world conversations provided through input dataset, generates
346346
// example suggestions for customer to verify quality of the model.
347347
// For Smart Reply, the generated csv file contains columns of
348348
// Context, (Suggestions,Q1,Q2)*3, Actual reply.
@@ -399,10 +399,10 @@ message EvaluationConfig {
399399

400400
// Specific configurations for different models in order to do evaluation.
401401
oneof model_specific_config {
402-
// Configuration for smart reply model evalution.
402+
// Configuration for smart reply model evaluation.
403403
SmartReplyConfig smart_reply_config = 2;
404404

405-
// Configuration for smart compose model evalution.
405+
// Configuration for smart compose model evaluation.
406406
SmartComposeConfig smart_compose_config = 4;
407407
}
408408
}

google/cloud/dialogflow/v2/conversation_profile.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -871,6 +871,9 @@ message SuggestionFeature {
871871
// Run smart reply model for chat.
872872
SMART_REPLY = 3;
873873

874+
// Run conversation summarization model for chat.
875+
CONVERSATION_SUMMARIZATION = 8;
876+
874877
// Run knowledge search with text input from agent or text generated query.
875878
KNOWLEDGE_SEARCH = 14;
876879

google/cloud/dialogflow/v2/dialogflow_grpc_service_config.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@
1111
{
1212
"service": "google.cloud.dialogflow.v2.Contexts"
1313
},
14+
{
15+
"service": "google.cloud.dialogflow.v2.ConversationalTrainingAssignments"
16+
},
17+
{
18+
"service": "google.cloud.dialogflow.v2.ConversationalTrainingMembers"
19+
},
20+
{
21+
"service": "google.cloud.dialogflow.v2.ConversationalTrainingModules"
22+
},
23+
{
24+
"service": "google.cloud.dialogflow.v2.ConversationalTrainingTeams"
25+
},
1426
{
1527
"service": "google.cloud.dialogflow.v2.ConversationDatasets"
1628
},

google/cloud/dialogflow/v2/document.proto

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import "google/protobuf/field_mask.proto";
2727
import "google/protobuf/timestamp.proto";
2828
import "google/rpc/status.proto";
2929

30-
option cc_enable_arenas = true;
3130
option csharp_namespace = "Google.Cloud.Dialogflow.V2";
3231
option go_package = "cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb";
3332
option java_multiple_files = true;

google/cloud/dialogflow/v2/encryption_spec.proto

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import "google/api/field_behavior.proto";
2222
import "google/api/resource.proto";
2323
import "google/longrunning/operations.proto";
2424

25-
option cc_enable_arenas = true;
2625
option csharp_namespace = "Google.Cloud.Dialogflow.V2";
2726
option go_package = "cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb";
2827
option java_multiple_files = true;

google/cloud/dialogflow/v2/generator.proto

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import "google/protobuf/empty.proto";
2424
import "google/protobuf/field_mask.proto";
2525
import "google/protobuf/timestamp.proto";
2626

27-
option cc_enable_arenas = true;
2827
option csharp_namespace = "Google.Cloud.Dialogflow.V2";
2928
option go_package = "cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb";
3029
option java_multiple_files = true;

0 commit comments

Comments
 (0)