Skip to content

Commit fbbbf50

Browse files
Google APIscopybara-github
authored andcommitted
feat: added support for playbook level speech settings
feat: added support for answer feedback & latency metrics in conversation history feat: added DocumentProcessingMode & BoostSpec for data stores PiperOrigin-RevId: 730930887
1 parent fe0fa26 commit fbbbf50

23 files changed

+101
-49
lines changed

google/cloud/dialogflow/cx/v3beta1/BUILD.bazel

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

432432
csharp_proto_library(
433433
name = "cx_csharp_proto",
434-
extra_opts = [],
435434
deps = [":cx_proto"],
436435
)
437436

google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import "google/api/field_behavior.proto";
2020
import "google/cloud/dialogflow/cx/v3beta1/gcs.proto";
2121
import "google/protobuf/duration.proto";
2222

23-
option cc_enable_arenas = true;
2423
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1";
2524
option go_package = "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb;cxpb";
2625
option java_multiple_files = true;
@@ -50,7 +49,7 @@ message AdvancedSettings {
5049
// Timeout before detecting no speech.
5150
google.protobuf.Duration no_speech_timeout = 2;
5251

53-
// Use timeout based endpointing, interpreting endpointer sensitivy as
52+
// Use timeout based endpointing, interpreting endpointer sensitivity as
5453
// seconds of timeout value.
5554
bool use_timeout_based_endpointing = 3;
5655

google/cloud/dialogflow/cx/v3beta1/agent.proto

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import "google/protobuf/empty.proto";
3030
import "google/protobuf/field_mask.proto";
3131
import "google/protobuf/struct.proto";
3232

33-
option cc_enable_arenas = true;
3433
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1";
3534
option go_package = "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb;cxpb";
3635
option java_multiple_files = true;
@@ -433,6 +432,20 @@ message Agent {
433432
// Optional. Settings for custom client certificates.
434433
ClientCertificateSettings client_certificate_settings = 43
435434
[(google.api.field_behavior) = OPTIONAL];
435+
436+
// Optional. Output only. A read only boolean field reflecting Zone Separation
437+
// status of the agent.
438+
optional bool satisfies_pzs = 45 [
439+
(google.api.field_behavior) = OPTIONAL,
440+
(google.api.field_behavior) = OUTPUT_ONLY
441+
];
442+
443+
// Optional. Output only. A read only boolean field reflecting Zone Isolation
444+
// status of the agent.
445+
optional bool satisfies_pzi = 46 [
446+
(google.api.field_behavior) = OPTIONAL,
447+
(google.api.field_behavior) = OUTPUT_ONLY
448+
];
436449
}
437450

438451
// The request message for

google/cloud/dialogflow/cx/v3beta1/audio_config.proto

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import "google/api/field_behavior.proto";
2020
import "google/api/resource.proto";
2121
import "google/protobuf/duration.proto";
2222

23-
option cc_enable_arenas = true;
2423
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1";
2524
option go_package = "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb;cxpb";
2625
option java_multiple_files = true;
@@ -165,7 +164,7 @@ message SpeechWordInfo {
165164
//
166165
// The client provides this configuration in terms of the durations of those
167166
// two phases. The durations are measured in terms of the audio length from the
168-
// the start of the input audio.
167+
// start of the input audio.
169168
//
170169
// No-speech event is a response with END_OF_UTTERANCE without any transcript
171170
// following up.

google/cloud/dialogflow/cx/v3beta1/bigquery_export.proto

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ syntax = "proto3";
1616

1717
package google.cloud.dialogflow.cx.v3beta1;
1818

19-
option cc_enable_arenas = true;
2019
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1";
2120
option go_package = "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb;cxpb";
2221
option java_multiple_files = true;

google/cloud/dialogflow/cx/v3beta1/changelog.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/protobuf/timestamp.proto";
2424

25-
option cc_enable_arenas = true;
2625
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1";
2726
option go_package = "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb;cxpb";
2827
option java_multiple_files = true;

google/cloud/dialogflow/cx/v3beta1/conversation_history.proto

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,15 @@ message Conversation {
291291
float score = 2;
292292
}
293293

294+
// Metrics of each processing step.
295+
message StepMetrics {
296+
// Name of the request processing step.
297+
string name = 1;
298+
299+
// Processing latency of the step.
300+
google.protobuf.Duration latency = 2;
301+
}
302+
294303
// The request of the interaction.
295304
DetectIntentRequest request = 1;
296305

@@ -315,9 +324,16 @@ message Conversation {
315324
// The time that the interaction was created.
316325
google.protobuf.Timestamp create_time = 6;
317326

327+
// Answer feedback for the final response.
328+
AnswerFeedback answer_feedback = 7;
329+
318330
// Missing transition predicted for the interaction. This field is set only
319331
// if the interaction match type was no-match.
320332
MissingTransition missing_transition = 8;
333+
334+
// Metrics associated with different processing steps. Names and number of
335+
// steps depend on the request and can change without a notice.
336+
repeated StepMetrics step_metrics = 9;
321337
}
322338

323339
// Identifier. The identifier of the conversation.

google/cloud/dialogflow/cx/v3beta1/data_store_connection.proto

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ message DataStoreConnection {
3737
// `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
3838
// `projects/{project}/locations/{location}/dataStores/{data_store}`
3939
string data_store = 2;
40+
41+
// The document processing mode for the data store connection. Should only be
42+
// set for PUBLIC_WEB and UNSTRUCTURED data stores. If not set it is
43+
// considered as DOCUMENTS, as this is the legacy mode.
44+
DocumentProcessingMode document_processing_mode = 4;
4045
}
4146

4247
// Type of a data store.
@@ -235,3 +240,17 @@ message DataStoreConnectionSignals {
235240
// Optional. Safety check result.
236241
SafetySignals safety_signals = 9 [(google.api.field_behavior) = OPTIONAL];
237242
}
243+
244+
// The document processing mode of the data store.
245+
enum DocumentProcessingMode {
246+
// Not specified. This should be set for STRUCTURED type data stores. Due to
247+
// legacy reasons this is considered as DOCUMENTS for STRUCTURED and
248+
// PUBLIC_WEB data stores.
249+
DOCUMENT_PROCESSING_MODE_UNSPECIFIED = 0;
250+
251+
// Documents are processed as documents.
252+
DOCUMENTS = 1;
253+
254+
// Documents are converted to chunks.
255+
CHUNKS = 2;
256+
}

google/cloud/dialogflow/cx/v3beta1/deployment.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/protobuf/timestamp.proto";
2424

25-
option cc_enable_arenas = true;
2625
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1";
2726
option go_package = "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb;cxpb";
2827
option java_multiple_files = true;

google/cloud/dialogflow/cx/v3beta1/environment.proto

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

31-
option cc_enable_arenas = true;
3231
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1";
3332
option go_package = "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb;cxpb";
3433
option java_multiple_files = true;

0 commit comments

Comments
 (0)