Skip to content

Commit

Permalink
feat: [dialogflow] added support for AssistQueryParameters and Synthe…
Browse files Browse the repository at this point in the history
…sizeSpeechConfig (#3995)

* feat: added support for AssistQueryParameters and SynthesizeSpeechConfig
docs: add more meaningful comments

PiperOrigin-RevId: 510042252

Source-Link: googleapis/googleapis@7b30db7

Source-Link: googleapis/googleapis-gen@17beb99
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3cvLk93bEJvdC55YW1sIiwiaCI6IjE3YmViOTk0MTc1MGIzMWZhYTQyM2EyOWQ3YTAxODM0NmE2Yjg4YjUifQ==

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Feb 17, 2023
1 parent aa185bb commit 57c0441
Show file tree
Hide file tree
Showing 14 changed files with 103 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import "google/cloud/dialogflow/v2/validation_result.proto";
import "google/longrunning/operations.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
import "google/protobuf/struct.proto";

option cc_enable_arenas = true;
option csharp_namespace = "Google.Cloud.Dialogflow.V2";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,9 @@ message SuggestConversationSummaryRequest {
// [latest_message] to use as context when compiling the
// suggestion. By default 500 and at most 1000.
int32 context_size = 4;

// Parameters for a human assist query.
AssistQueryParameters assist_query_params = 5;
}

// The response message for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/cloud/dialogflow/v2/gcs.proto";
import "google/longrunning/operations.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/timestamp.proto";
import "google/rpc/status.proto";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import "google/api/client.proto";
import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/longrunning/operations.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/timestamp.proto";

option cc_enable_arenas = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,12 @@ message ConversationProfile {
string security_settings = 13 [(google.api.resource_reference) = {
type: "dialogflow.googleapis.com/CXSecuritySettings"
}];

// Configuration for Text-to-Speech synthesization.
//
// Used by Phone Gateway to specify synthesization options. If agent defines
// synthesization options as well, agent settings overrides the option here.
SynthesizeSpeechConfig tts_config = 18;
}

// The request message for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/cloud/dialogflow/v2/gcs.proto";
import "google/longrunning/operations.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";
import "google/rpc/status.proto";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import "google/api/resource.proto";
import "google/longrunning/operations.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
import "google/protobuf/struct.proto";

option cc_enable_arenas = true;
option csharp_namespace = "Google.Cloud.Dialogflow.V2";
Expand Down
12 changes: 12 additions & 0 deletions packages/google-cloud-dialogflow/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 56 additions & 0 deletions packages/google-cloud-dialogflow/protos/protos.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions packages/google-cloud-dialogflow/protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ function main(conversation) {
* suggestion. By default 500 and at most 1000.
*/
// const contextSize = 1234
/**
* Parameters for a human assist query.
*/
// const assistQueryParams = {}

// Imports the Dialogflow library
const {ConversationsClient} = require('@google-cloud/dialogflow').v2;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"clientLibrary": {
"name": "nodejs-dialogflow",
"version": "5.5.0",
"version": "5.5.1",
"language": "TYPESCRIPT",
"apis": [
{
Expand Down Expand Up @@ -1914,7 +1914,7 @@
"segments": [
{
"start": 25,
"end": 69,
"end": 73,
"type": "FULL"
}
],
Expand All @@ -1934,6 +1934,10 @@
{
"name": "context_size",
"type": "TYPE_INT32"
},
{
"name": "assist_query_params",
"type": ".google.cloud.dialogflow.v2.AssistQueryParameters"
}
],
"resultType": ".google.cloud.dialogflow.v2.SuggestConversationSummaryResponse",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"clientLibrary": {
"name": "nodejs-dialogflow",
"version": "5.5.0",
"version": "5.5.1",
"language": "TYPESCRIPT",
"apis": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,8 @@ export class ConversationsClient {
* Max number of messages prior to and including
* [latest_message] to use as context when compiling the
* suggestion. By default 500 and at most 1000.
* @param {google.cloud.dialogflow.v2.AssistQueryParameters} request.assistQueryParams
* Parameters for a human assist query.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
Expand Down

0 comments on commit 57c0441

Please sign in to comment.