Skip to content

Commit a076084

Browse files
Google APIscopybara-github
authored andcommitted
feat: provide new parameter cx_current_page, the unique identifier of the CX page to override the current_page in the session. Add filter field to ListAnswerRecordsRequest. And add AudioInput to analysis requests
docs: add more meaningful comments PiperOrigin-RevId: 459325028
1 parent 9284ce6 commit a076084

6 files changed

Lines changed: 69 additions & 2 deletions

File tree

google/cloud/dialogflow/v2beta1/BUILD.bazel

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ proto_library_with_info(
6464
deps = [
6565
":dialogflow_proto",
6666
"//google/cloud:common_resources_proto",
67+
"//google/cloud/location:location_proto",
6768
],
6869
)
6970

@@ -98,11 +99,13 @@ java_gapic_library(
9899
service_yaml = "dialogflow_v2beta1.yaml",
99100
test_deps = [
100101
":dialogflow_java_grpc",
102+
"//google/cloud/location:location_java_grpc",
101103
],
102104
transport = "grpc+rest",
103105
deps = [
104106
":dialogflow_java_proto",
105107
"//google/api:api_java_proto",
108+
"//google/cloud/location:location_java_proto",
106109
],
107110
)
108111

@@ -190,6 +193,7 @@ go_gapic_library(
190193
transport = "grpc+rest",
191194
deps = [
192195
":dialogflow_go_proto",
196+
"//google/cloud/location:location_go_proto",
193197
"//google/longrunning:longrunning_go_proto",
194198
"@com_google_cloud_go//longrunning:go_default_library",
195199
"@com_google_cloud_go//longrunning/autogen:go_default_library",
@@ -347,6 +351,7 @@ ruby_cloud_gapic_library(
347351
grpc_service_config = "dialogflow_grpc_service_config.json",
348352
ruby_cloud_description = "Dialogflow is an end-to-end, build-once deploy-everywhere development suite for creating conversational interfaces for websites, mobile applications, popular messaging platforms, and IoT devices. You can use it to build interfaces (such as chatbots and conversational IVR) that enable natural and rich interactions between your users and your business. This client is for Dialogflow ES, providing the standard agent type suitable for small and simple agents.",
349353
ruby_cloud_title = "Dialogflow V2beta1",
354+
service_yaml = "dialogflow_v2beta1.yaml",
350355
deps = [
351356
":dialogflow_ruby_grpc",
352357
":dialogflow_ruby_proto",

google/cloud/dialogflow/v2beta1/answer_record.proto

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,17 @@ message ListAnswerRecordsRequest {
280280
child_type: "dialogflow.googleapis.com/AnswerRecord"
281281
}];
282282

283+
// Optional. Filters to restrict results to specific answer records.
284+
//
285+
// Marked deprecated as it hasn't been, and isn't currently, supported.
286+
//
287+
// For more information about filtering, see
288+
// [API Filtering](https://aip.dev/160).
289+
string filter = 2 [
290+
deprecated = true,
291+
(google.api.field_behavior) = OPTIONAL
292+
];
293+
283294
// Optional. The maximum number of records to return in a single page.
284295
// The server may return fewer records than this. If unspecified, we use 10.
285296
// The maximum is 100.

google/cloud/dialogflow/v2beta1/conversation_profile.proto

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,8 @@ message HumanAgentAssistantConfig {
437437

438438
// Custom conversation models used in agent assist feature.
439439
//
440-
// Supported feature: ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY.
440+
// Supported feature: ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY,
441+
// CONVERSATION_SUMMARIZATION.
441442
message ConversationModelConfig {
442443
// Conversation model resource name. Format: `projects/<Project
443444
// ID>/conversationModels/<Model ID>`.

google/cloud/dialogflow/v2beta1/dialogflow_v2beta1.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ apis:
1919
- name: google.cloud.dialogflow.v2beta1.SessionEntityTypes
2020
- name: google.cloud.dialogflow.v2beta1.Sessions
2121
- name: google.cloud.dialogflow.v2beta1.Versions
22+
- name: google.cloud.location.Locations
23+
- name: google.longrunning.Operations
2224

2325
types:
2426
- name: google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse

google/cloud/dialogflow/v2beta1/participant.proto

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ service Participants {
107107
};
108108
option (google.api.method_signature) = "participant,text_input";
109109
option (google.api.method_signature) = "participant,event_input";
110+
option (google.api.method_signature) = "participant,audio_input";
110111
}
111112

112113
// Adds a text (e.g., chat) or audio (e.g., phone recording) message from a
@@ -408,6 +409,17 @@ message UpdateParticipantRequest {
408409
google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
409410
}
410411

412+
// Represents the natural language speech audio to be processed.
413+
message AudioInput {
414+
// Required. Instructs the speech recognizer how to process the speech audio.
415+
InputAudioConfig config = 1;
416+
417+
// Required. The natural language speech audio to be processed.
418+
// A single request can contain up to 1 minute of speech audio data.
419+
// The transcribed text cannot contain more than 256 bytes.
420+
bytes audio = 2;
421+
}
422+
411423
// Represents the natural language speech audio to be played to the end user.
412424
message OutputAudio {
413425
// Required. Instructs the speech synthesizer how to generate the speech
@@ -544,6 +556,9 @@ message AnalyzeContentRequest {
544556
// The natural language text to be processed.
545557
TextInput text_input = 6;
546558

559+
// The natural language speech audio to be processed.
560+
AudioInput audio_input = 7;
561+
547562
// An input event to send to Dialogflow.
548563
EventInput event_input = 8;
549564
}
@@ -569,6 +584,22 @@ message AnalyzeContentRequest {
569584
// CX agent.
570585
google.protobuf.Struct cx_parameters = 18;
571586

587+
// The unique identifier of the CX page to override the `current_page` in the
588+
// session.
589+
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
590+
// ID>/flows/<Flow ID>/pages/<Page ID>`.
591+
//
592+
// If `cx_current_page` is specified, the previous state of the session will
593+
// be ignored by Dialogflow CX, including the [previous
594+
// page][QueryResult.current_page] and the [previous session
595+
// parameters][QueryResult.parameters]. In most cases, `cx_current_page` and
596+
// `cx_parameters` should be configured together to direct a session to a
597+
// specific state.
598+
//
599+
// Note: this field should only be used if you are connecting to a Dialogflow
600+
// CX agent.
601+
string cx_current_page = 20;
602+
572603
// Optional. The send time of the message from end user or human agent's
573604
// perspective. It is used for identifying the same message under one
574605
// participant.
@@ -753,6 +784,22 @@ message StreamingAnalyzeContentRequest {
753784
// CX agent.
754785
google.protobuf.Struct cx_parameters = 13;
755786

787+
// The unique identifier of the CX page to override the `current_page` in the
788+
// session.
789+
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
790+
// ID>/flows/<Flow ID>/pages/<Page ID>`.
791+
//
792+
// If `cx_current_page` is specified, the previous state of the session will
793+
// be ignored by Dialogflow CX, including the [previous
794+
// page][QueryResult.current_page] and the [previous session
795+
// parameters][QueryResult.parameters]. In most cases, `cx_current_page` and
796+
// `cx_parameters` should be configured together to direct a session to a
797+
// specific state.
798+
//
799+
// Note: this field should only be used if you are connecting to a Dialogflow
800+
// CX agent.
801+
string cx_current_page = 15;
802+
756803
// Enable partial virtual agent responses. If this flag is not enabled,
757804
// response stream still contains only one final response even if some
758805
// `Fulfillment`s in Dialogflow virtual agent have been configured to return

google/cloud/dialogflow/v2beta1/session.proto

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,8 @@ message QueryResult {
356356
bool all_required_params_present = 5;
357357

358358
// Indicates whether the conversational query triggers a cancellation for slot
359-
// filling.
359+
// filling. For more information, see the [cancel slot filling
360+
// documentation](https://cloud.google.com/dialogflow/es/docs/intents-actions-parameters#cancel).
360361
bool cancels_slot_filling = 21;
361362

362363
// The text to be pronounced to the user or shown on the screen.

0 commit comments

Comments
 (0)